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
93185f72
Kaydet (Commit)
93185f72
authored
Kas 16, 2015
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Get Double-buffered context creation working on linux.
Change-Id: I3db1d6792fcd51577f047b82029124ec825ea319
üst
ef414f70
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
OpenGLContext.cxx
vcl/source/opengl/OpenGLContext.cxx
+7
-6
No files found.
vcl/source/opengl/OpenGLContext.cxx
Dosyayı görüntüle @
93185f72
...
@@ -706,9 +706,7 @@ bool GLWindow::HasGLXExtension( const char* name ) const
...
@@ -706,9 +706,7 @@ bool GLWindow::HasGLXExtension( const char* name ) const
bool
OpenGLContext
::
ImplInit
()
bool
OpenGLContext
::
ImplInit
()
{
{
if
(
!
m_aGLWin
.
dpy
)
if
(
!
m_aGLWin
.
dpy
)
{
return
false
;
return
false
;
}
OpenGLZone
aZone
;
OpenGLZone
aZone
;
...
@@ -722,11 +720,10 @@ bool OpenGLContext::ImplInit()
...
@@ -722,11 +720,10 @@ bool OpenGLContext::ImplInit()
if
(
!
g_vShareList
.
empty
())
if
(
!
g_vShareList
.
empty
())
pSharedCtx
=
g_vShareList
.
front
();
pSharedCtx
=
g_vShareList
.
front
();
#ifdef DBG_UTIL
if
(
glXCreateContextAttribsARB
&&
!
mbRequestLegacyContext
)
if
(
glXCreateContextAttribsARB
&&
!
mbRequestLegacyContext
)
{
{
int
best_fbc
=
-
1
;
int
best_fbc
=
-
1
;
GLXFBConfig
*
pFBC
=
getFBConfig
(
m_aGLWin
.
dpy
,
m_aGLWin
.
win
,
best_fbc
,
mbUseDoubleBufferedRendering
,
tru
e
);
GLXFBConfig
*
pFBC
=
getFBConfig
(
m_aGLWin
.
dpy
,
m_aGLWin
.
win
,
best_fbc
,
mbUseDoubleBufferedRendering
,
fals
e
);
if
(
!
pFBC
)
if
(
!
pFBC
)
return
false
;
return
false
;
...
@@ -734,24 +731,28 @@ bool OpenGLContext::ImplInit()
...
@@ -734,24 +731,28 @@ bool OpenGLContext::ImplInit()
{
{
int
pContextAttribs
[]
=
int
pContextAttribs
[]
=
{
{
#if 0 // defined(DBG_UTIL)
GLX_CONTEXT_MAJOR_VERSION_ARB, 3,
GLX_CONTEXT_MAJOR_VERSION_ARB, 3,
GLX_CONTEXT_MINOR_VERSION_ARB, 2,
GLX_CONTEXT_MINOR_VERSION_ARB, 2,
#endif
None
None
};
};
m_aGLWin
.
ctx
=
glXCreateContextAttribsARB
(
m_aGLWin
.
dpy
,
pFBC
[
best_fbc
],
pSharedCtx
,
/* direct, not via X */
GL_TRUE
,
pContextAttribs
);
m_aGLWin
.
ctx
=
glXCreateContextAttribsARB
(
m_aGLWin
.
dpy
,
pFBC
[
best_fbc
],
pSharedCtx
,
/* direct, not via X */
GL_TRUE
,
pContextAttribs
);
SAL_INFO_IF
(
m_aGLWin
.
ctx
,
"vcl.opengl"
,
"created a 3.2 core context"
);
SAL_INFO_IF
(
m_aGLWin
.
ctx
,
"vcl.opengl"
,
"created a 3.2 core context"
);
}
}
else
else
SAL_WARN
(
"vcl.opengl"
,
"unable to find correct FBC"
);
SAL_WARN
(
"vcl.opengl"
,
"unable to find correct FBC"
);
}
}
#endif
if
(
!
m_aGLWin
.
ctx
)
if
(
!
m_aGLWin
.
ctx
)
{
{
if
(
!
m_aGLWin
.
vi
)
if
(
!
m_aGLWin
.
vi
)
return
false
;
return
false
;
SAL_WARN
(
"vcl.opengl"
,
"attempting to create a non-double-buffered "
"visual matching the context"
);
m_aGLWin
.
ctx
=
glXCreateContext
(
m_aGLWin
.
dpy
,
m_aGLWin
.
ctx
=
glXCreateContext
(
m_aGLWin
.
dpy
,
m_aGLWin
.
vi
,
m_aGLWin
.
vi
,
pSharedCtx
,
pSharedCtx
,
...
...
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