OpenGL: Remove bogus error in textures example on ES 2 platforms
authorSean Harmer <sean.harmer@kdab.com>
Fri, 30 Nov 2012 10:48:54 +0000 (10:48 +0000)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 1 Dec 2012 07:29:14 +0000 (08:29 +0100)
commita7c9d5ca9c754902baa0fa5a6ba8b28864611ca5
tree50da0e506f34887001d016cc0db7b34d69becba6
parent5573a44f689ef92873a55fccf7f2752b43243de5
OpenGL: Remove bogus error in textures example on ES 2 platforms

The call to glGetBooleanv(GL_FRAMEBUFFER_SRGB_CAPABLE_EXT) in
QGLExtensions::currentContextExtensions() was resulting in an invalid
enum on ES 2 systems. This was not being cleared and subsequentally
being interpreted as a failed texture upload in the textures example.

This enum doesn't exist on ES 2 so don't query it.

Change-Id: I84f9c4b0aa8b11b6036eeed1f9378d110d9ea69d
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
src/opengl/qgl.cpp