From 2d7827ec607eb8f68ed12989d8b8087b15146b1a Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Tue, 21 Jun 2016 18:28:46 +1000 Subject: 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 2c208edd0..59bcf4d9b 100644 --- a/gst-libs/gst/gl/gstglcontext.c +++ b/gst-libs/gst/gl/gstglcontext.c @@ -541,9 +541,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; -- cgit v1.2.1