Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
6f5a9486
Kaydet (Commit)
6f5a9486
authored
Kas 18, 2014
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
vcl: check the OpenGL drawable as well as the context.
Change-Id: Idac493dfb3239f7ae5b5e49158d79c4f3e707509
üst
620156f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
OpenGLContext.cxx
vcl/source/opengl/OpenGLContext.cxx
+6
-3
No files found.
vcl/source/opengl/OpenGLContext.cxx
Dosyayı görüntüle @
6f5a9486
...
...
@@ -1137,7 +1137,8 @@ SystemWindowData OpenGLContext::generateWinData(vcl::Window* pParent, bool)
void
OpenGLContext
::
makeCurrent
()
{
#if defined( WNT )
if
(
wglGetCurrentContext
()
==
m_aGLWin
.
hRC
)
if
(
wglGetCurrentContext
()
==
m_aGLWin
.
hRC
&&
wglGetCurrentDC
()
==
m_aGLWin
.
hDC
)
{
SAL_INFO
(
"vcl.opengl"
,
"OpenGLContext::makeCurrent(): Avoid setting the same context"
);
}
...
...
@@ -1151,11 +1152,13 @@ void OpenGLContext::makeCurrent()
#elif defined( IOS ) || defined( ANDROID )
// nothing
#elif defined( UNX )
if
(
glXGetCurrentContext
()
==
m_aGLWin
.
ctx
)
GLXDrawable
nDrawable
=
mbPixmap
?
m_aGLWin
.
glPix
:
m_aGLWin
.
win
;
if
(
glXGetCurrentContext
()
==
m_aGLWin
.
ctx
&&
glXGetCurrentDrawable
()
==
nDrawable
)
{
SAL_INFO
(
"vcl.opengl"
,
"OpenGLContext::makeCurrent(): Avoid setting the same context"
);
}
else
if
(
!
glXMakeCurrent
(
m_aGLWin
.
dpy
,
mbPixmap
?
m_aGLWin
.
glPix
:
m_aGLWin
.
win
,
m_aGLWin
.
ctx
))
else
if
(
!
glXMakeCurrent
(
m_aGLWin
.
dpy
,
nDrawable
,
m_aGLWin
.
ctx
))
SAL_WARN
(
"vcl.opengl"
,
"OpenGLContext::makeCurrent failed"
);
#endif
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment