From 727c55c09411f42e243178269d6ce9583958a23c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Samuel=20R=C3=B8dal?= Date: Wed, 19 Sep 2012 17:01:01 +0200 Subject: [PATCH] Fixed potential use of uninitialized variable in qgl.cpp If glGetBooleanv fails this variable is left uninitialized. Task-number: QTBUG-26952 Change-Id: Idb42833f2907bb66fd87c5cdb39753fca04e7438 Reviewed-by: Sean Harmer --- src/opengl/qgl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp index d17a279..a2135c7 100644 --- 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; -- 2.7.4