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 <sean.harmer@kdab.com>bb10
parent
d626bea2c7
commit
727c55c094
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue