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
904d5010
Kaydet (Commit)
904d5010
authored
Şub 09, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1169877 Uninitialized pointer field
Change-Id: I3a64f7d476b682c68d05a25ed4b2287ef3e482d5
üst
042fec5b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
14 deletions
+48
-14
OpenGLRender.cxx
chart2/source/view/main/OpenGLRender.cxx
+34
-14
OpenGLRender.hxx
chart2/source/view/main/OpenGLRender.hxx
+14
-0
No files found.
chart2/source/view/main/OpenGLRender.cxx
Dosyayı görüntüle @
904d5010
...
...
@@ -756,22 +756,42 @@ void OpenGLRender::Release()
#endif
}
OpenGLRender
::
OpenGLRender
(
uno
::
Reference
<
drawing
::
XShape
>
xTarget
)
:
m_Model
(
glm
::
mat4
(
1.0
f
)),
m_TextureObj
(
0
),
m_FboID
(
0
),
m_RboID
(
0
),
m_iWidth
(
0
),
m_iHeight
(
0
),
mxRenderTarget
(
xTarget
),
mbArbMultisampleSupported
(
false
),
OpenGLRender
::
OpenGLRender
(
uno
::
Reference
<
drawing
::
XShape
>
xTarget
)
:
m_Model
(
glm
::
mat4
(
1.0
f
))
,
m_TextureObj
(
0
)
,
m_FboID
(
0
)
,
m_RboID
(
0
)
,
m_iWidth
(
0
)
,
m_iHeight
(
0
)
,
m_fLineWidth
(
0
)
,
mxRenderTarget
(
xTarget
)
,
mbArbMultisampleSupported
(
false
)
#if defined( _WIN32 )
m_iArbMultisampleFormat
(
0
),
,
m_iArbMultisampleFormat
(
0
)
#endif
m_2DColor
(
glm
::
vec4
(
1.0
,
0.0
,
0.0
,
1.0
)),
m_frameBufferMS
(
0
),
m_TextVertexID
(
0
),
m_TextTexCoordID
(
1
)
,
m_2DColor
(
glm
::
vec4
(
1.0
,
0.0
,
0.0
,
1.0
))
,
m_frameBufferMS
(
0
)
,
m_renderBufferColorMS
(
0
)
,
m_renderBufferDepthMS
(
0
)
,
m_CommonProID
(
0
)
,
m_2DVertexID
(
0
)
,
m_2DColorID
(
0
)
,
m_fZStep
(
0
)
,
m_TextProID
(
0
)
,
m_TextMatrixID
(
0
)
,
m_TextVertexID
(
0
)
,
m_TextTexCoordID
(
1
)
,
m_TextTexCoordBuf
(
0
)
,
m_TextTexID
(
0
)
,
m_BackgroundProID
(
0
)
,
m_BackgroundMatrixID
(
0
)
,
m_BackgroundVertexID
(
0
)
,
m_BackgroundColorID
(
0
)
,
m_SymbolProID
(
0
)
,
m_SymbolVertexID
(
0
)
,
m_SymbolMatrixID
(
0
)
,
m_SymbolColorID
(
0
)
,
m_SymbolShapeID
(
0
)
{
//TODO: moggi: use STL
memset
(
&
m_Bubble2DCircle
,
0
,
sizeof
(
m_Bubble2DCircle
));
...
...
chart2/source/view/main/OpenGLRender.hxx
Dosyayı görüntüle @
904d5010
...
...
@@ -123,6 +123,20 @@ struct GLWindow
const
GLubyte
*
GLExtensions
;
bool
HasGLExtension
(
const
char
*
name
)
{
return
gluCheckExtension
(
(
const
GLubyte
*
)
name
,
GLExtensions
);
}
GLWindow
()
:
#if defined( _WIN32 )
#elif defined( MACOSX )
#elif defined( UNX )
GLXExtensions
(
NULL
),
#endif
bpp
(
0
),
Width
(
0
),
Height
(
0
),
GLExtensions
(
NULL
)
{
}
};
class
OpenGLRender
...
...
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