From 8a67cd90b3618d4f01928c66c9108d99229e425f Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Tue, 21 Jun 2016 18:28:46 +1000 Subject: [PATCH] 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. --- gst-libs/gst/gl/gstglcontext.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/gl/gstglcontext.c b/gst-libs/gst/gl/gstglcontext.c index 77dc8fc..3ad5a4c 100644 --- a/gst-libs/gst/gl/gstglcontext.c +++ b/gst-libs/gst/gl/gstglcontext.c @@ -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; -- 2.7.4