From 4a6b20cc42f8a18508f201f0f3058696de0bac6c 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 77dc8fc731..3ad5a4c9aa 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;