OpenGL: Add missing WINAPI calling convention for QGL functions

This is the QGL equivalent of commit

602cab9bb2

Without this QGLExtensionMatcher causes stack corruption when using
a core profile GL context due to the call to glGetStringi() with
an incorrect calling convention.

Change-Id: Ibd86645e04df8c650c182fecfc8c481dae8a75b2
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
Sean Harmer 2012-10-11 14:08:45 +01:00 committed by The Qt Project
parent e24dd4d48f
commit 83aa1a2103

View File

@ -61,6 +61,9 @@ QT_BEGIN_NAMESPACE
typedef ptrdiff_t qgl_GLintptr;
typedef ptrdiff_t qgl_GLsizeiptr;
#if defined(APIENTRY) && !defined(QGLF_APIENTRY)
# define QGLF_APIENTRY APIENTRY
#endif
# ifndef QGLF_APIENTRYP
# ifdef QGLF_APIENTRY