Prevent stack corruption when using OpenGL Core Profile
authorSean Harmer <sean.harmer@kdab.com>
Sat, 18 Feb 2012 20:05:53 +0000 (20:05 +0000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 27 Feb 2012 23:29:04 +0000 (00:29 +0100)
commitc2baf45c73beaa01df91d466296fd4efca25ee7a
tree584396a924cea33e5be5e3fff337f148d3988f6a
parent394e45199fa1aa45036dd787c5052ef7bcd98c52
Prevent stack corruption when using OpenGL Core Profile

When an OpenGL Core Profile context is requested the function
glGetStringi() is used to query the supported extensions as
glGetString(GL_EXTENSIONS) has been removed in the core profile.

The signature for glGetStringi used in Qt missed off the APIENTRY calling
convention. This results in stack corruption on windows each time
glGetStringi() is called leading to a crash.

Change-Id: Iff62c42e2bb5fc4a5c0561fae97ddc5a8ae3a45e
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/gui/opengl/qopengl.cpp
src/opengl/qgl.cpp