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 committed by Tim-Philipp Müller
parent dfd6565b4b
commit 4a6b20cc42

View file

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