projects
/
profile
/
ivi
/
qtbase.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d626bea
)
Fixed potential use of uninitialized variable in qgl.cpp
author
Samuel Rødal
<samuel.rodal@digia.com>
Wed, 19 Sep 2012 15:01:01 +0000
(17:01 +0200)
committer
The Qt Project
<gerrit-noreply@qt-project.org>
Wed, 19 Sep 2012 17:54:44 +0000
(19:54 +0200)
If glGetBooleanv fails this variable is left uninitialized.
Task-number: QTBUG-26952
Change-Id: Idb42833f2907bb66fd87c5cdb39753fca04e7438
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
src/opengl/qgl.cpp
patch
|
blob
|
history
diff --git
a/src/opengl/qgl.cpp
b/src/opengl/qgl.cpp
index
d17a279
..
a2135c7
100644
(file)
--- a/
src/opengl/qgl.cpp
+++ b/
src/opengl/qgl.cpp
@@
-4851,7
+4851,7
@@
QGLExtensions::Extensions QGLExtensions::currentContextExtensions()
glExtensions |= BGRATextureFormat;
{
- GLboolean srgbCapableFramebuffers;
+ GLboolean srgbCapableFramebuffers
= false
;
glGetBooleanv(GL_FRAMEBUFFER_SRGB_CAPABLE_EXT, &srgbCapableFramebuffers);
if (srgbCapableFramebuffers)
glExtensions |= SRGBFrameBuffer;