From 0324bb17f7cb0e855ca1d7adb2d0e171b19dfd06 Mon Sep 17 00:00:00 2001 From: Sean Harmer Date: Mon, 5 Mar 2012 11:32:09 +0000 Subject: Prevent stack corruption when using OpenGL Core Profile on Windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is the backport of commit 1c5b2de9b75a5e74fd7d511fea71edc382d539b6 to qtbase. Change-Id: I8680c20c8b804fb4e77062f52b8f4188b49263a8 Reviewed-by: Samuel Rødal --- 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 e2308f6..7080e1d 100644 --- a/src/opengl/qgl.cpp +++ b/src/opengl/qgl.cpp @@ -5400,7 +5400,7 @@ QGLWidget::QGLWidget(QGLContext *context, QWidget *parent, #endif // QT3_SUPPORT -typedef GLubyte * (*qt_glGetStringi)(GLenum, GLuint); +typedef const GLubyte * (APIENTRY *qt_glGetStringi)(GLenum, GLuint); #ifndef GL_NUM_EXTENSIONS #define GL_NUM_EXTENSIONS 0x821D -- cgit v0.12