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
418edcf0
Kaydet (Commit)
418edcf0
authored
Mar 17, 2014
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix multisample support in OpenGL
Change-Id: I7e530f5ae8d83d275df554781847b525b38bf4c7
üst
5d42bbdc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
OpenGLRender.cxx
chart2/source/view/main/OpenGLRender.cxx
+1
-0
OpenGLContext.hxx
include/vcl/OpenGLContext.hxx
+3
-1
OpenGLContext.cxx
vcl/source/opengl/OpenGLContext.cxx
+4
-0
No files found.
chart2/source/view/main/OpenGLRender.cxx
Dosyayı görüntüle @
418edcf0
...
@@ -235,6 +235,7 @@ GLfloat texCoords[] = {
...
@@ -235,6 +235,7 @@ GLfloat texCoords[] = {
int
OpenGLRender
::
InitOpenGL
(
GLWindow
aWindow
)
int
OpenGLRender
::
InitOpenGL
(
GLWindow
aWindow
)
{
{
glWin
=
aWindow
;
glWin
=
aWindow
;
mbArbMultisampleSupported
=
glWin
.
bMultiSampleSupported
;
if
(
!
bGlewInit
)
if
(
!
bGlewInit
)
{
{
glewExperimental
=
GL_TRUE
;
glewExperimental
=
GL_TRUE
;
...
...
include/vcl/OpenGLContext.hxx
Dosyayı görüntüle @
418edcf0
...
@@ -65,6 +65,7 @@ struct GLWindow
...
@@ -65,6 +65,7 @@ struct GLWindow
unsigned
int
Width
;
unsigned
int
Width
;
unsigned
int
Height
;
unsigned
int
Height
;
const
GLubyte
*
GLExtensions
;
const
GLubyte
*
GLExtensions
;
bool
bMultiSampleSupported
;
bool
HasGLExtension
(
const
char
*
name
)
{
return
gluCheckExtension
(
(
const
GLubyte
*
)
name
,
GLExtensions
);
}
bool
HasGLExtension
(
const
char
*
name
)
{
return
gluCheckExtension
(
(
const
GLubyte
*
)
name
,
GLExtensions
);
}
...
@@ -86,7 +87,8 @@ struct GLWindow
...
@@ -86,7 +87,8 @@ struct GLWindow
bpp
(
0
),
bpp
(
0
),
Width
(
0
),
Width
(
0
),
Height
(
0
),
Height
(
0
),
GLExtensions
(
NULL
)
GLExtensions
(
NULL
),
bMultiSampleSupported
(
false
)
{
{
}
}
};
};
...
...
vcl/source/opengl/OpenGLContext.cxx
Dosyayı görüntüle @
418edcf0
...
@@ -369,6 +369,7 @@ bool OpenGLContext::init()
...
@@ -369,6 +369,7 @@ bool OpenGLContext::init()
bool
bMultiSampleSupport
=
InitMultisample
(
PixelFormatFront
,
WindowPix
);
bool
bMultiSampleSupport
=
InitMultisample
(
PixelFormatFront
,
WindowPix
);
if
(
bMultiSampleSupport
)
if
(
bMultiSampleSupport
)
{
{
m_aGLWin
.
bMultiSampleSupported
=
true
;
}
}
else
else
{
{
...
@@ -568,6 +569,9 @@ bool OpenGLContext::initWindow()
...
@@ -568,6 +569,9 @@ bool OpenGLContext::initWindow()
XFree
(
pVi
);
XFree
(
pVi
);
}
}
if
(
best_num_samp
>
0
)
m_aGLWin
.
bMultiSampleSupported
=
true
;
XVisualInfo
*
vi
=
glXGetVisualFromFBConfig
(
m_aGLWin
.
dpy
,
pFBC
[
best_fbc
]
);
XVisualInfo
*
vi
=
glXGetVisualFromFBConfig
(
m_aGLWin
.
dpy
,
pFBC
[
best_fbc
]
);
if
(
vi
)
if
(
vi
)
{
{
...
...
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