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
8384350e
Kaydet (Commit)
8384350e
authored
Ock 20, 2015
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix the life cycle of my RAII object
Change-Id: Ifcd4ab79192be965b57439062354e27af80136b3
üst
1bb284fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
OpenGLContext.cxx
vcl/source/opengl/OpenGLContext.cxx
+10
-6
No files found.
vcl/source/opengl/OpenGLContext.cxx
Dosyayı görüntüle @
8384350e
...
...
@@ -434,9 +434,13 @@ namespace {
int
unxErrorHandler
(
Display
*
dpy
,
XErrorEvent
*
event
)
{
char
errorString
[
256
];
XGetErrorText
(
dpy
,
event
->
type
,
errorString
,
256
);
SAL_WARN
(
"vcl.opengl"
,
errorString
);
char
err
[
256
];
char
req
[
256
];
char
minor
[
256
];
XGetErrorText
(
dpy
,
event
->
error_code
,
err
,
256
);
XGetErrorText
(
dpy
,
event
->
request_code
,
req
,
256
);
XGetErrorText
(
dpy
,
event
->
minor_code
,
minor
,
256
);
SAL_WARN
(
"vcl.opengl"
,
"Error: "
<<
err
<<
", Req: "
<<
req
<<
", Minor: "
<<
minor
);
return
0
;
}
...
...
@@ -705,7 +709,7 @@ bool OpenGLContext::init(Display* dpy, Pixmap pix, unsigned int width, unsigned
bool
OpenGLContext
::
ImplInit
()
{
GLXContext
pSharedCtx
(
NULL
);
TempErrorHandler
(
m_aGLWin
.
dpy
,
unxErrorHandler
);
TempErrorHandler
aErrorHandler
(
m_aGLWin
.
dpy
,
unxErrorHandler
);
SAL_INFO
(
"vcl.opengl"
,
"OpenGLContext::ImplInit----start"
);
...
...
@@ -798,7 +802,7 @@ bool OpenGLContext::ImplInit()
glXSwapIntervalProc
glXSwapInterval
=
reinterpret_cast
<
glXSwapIntervalProc
>
(
glXGetProcAddress
(
reinterpret_cast
<
const
GLubyte
*>
(
"glXSwapIntervalSGI"
)
));
if
(
glXSwapInterval
)
{
TempErrorHandler
(
m_aGLWin
.
dpy
,
oglErrorHandler
);
TempErrorHandler
aLocalErrorHandler
(
m_aGLWin
.
dpy
,
oglErrorHandler
);
errorTriggered
=
false
;
...
...
@@ -1337,7 +1341,7 @@ void OpenGLContext::makeCurrent()
#elif defined( IOS ) || defined( ANDROID )
// nothing
#elif defined( UNX )
TempErrorHandler
(
m_aGLWin
.
dpy
,
unxErrorHandler
);
TempErrorHandler
aErrorHandler
(
m_aGLWin
.
dpy
,
unxErrorHandler
);
GLXDrawable
nDrawable
=
mbPixmap
?
m_aGLWin
.
glPix
:
m_aGLWin
.
win
;
if
(
!
glXMakeCurrent
(
m_aGLWin
.
dpy
,
nDrawable
,
m_aGLWin
.
ctx
))
...
...
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