glcontext: fix get_current_gl_api() on win32

Another case of incorrect calling conventions.

Using this function on win32 would corrupt the stack pointer and end in
massive hilarity.
This commit is contained in:
Matthew Waters 2016-06-21 18:28:46 +10:00
parent d3f3787d64
commit 8a67cd90b3

View file

@ -537,9 +537,9 @@ GstGLAPI
gst_gl_context_get_current_gl_api (GstGLPlatform platform, guint * major, gst_gl_context_get_current_gl_api (GstGLPlatform platform, guint * major,
guint * minor) guint * minor)
{ {
const GLubyte *(*GetString) (GLenum name); const GLubyte *(GSTGLAPI *GetString) (GLenum name);
#if GST_GL_HAVE_OPENGL #if GST_GL_HAVE_OPENGL
void (*GetIntegerv) (GLenum name, GLuint * n); void (GSTGLAPI *GetIntegerv) (GLenum name, GLuint * n);
#endif #endif
const gchar *version; const gchar *version;
gint maj, min, n; gint maj, min, n;