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:
parent
e24dd4d48f
commit
83aa1a2103
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user