summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2016-06-21 18:28:46 +1000
committerJan Schmidt <jan@centricular.com>2016-08-16 11:36:47 +1000
commit2d7827ec607eb8f68ed12989d8b8087b15146b1a (patch)
tree81f5c1a4a41266a191273fbb5831a4b33aa627f6
parent9d4da38838211f4826b278f5c0fe6afd4d3509df (diff)
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.
-rw-r--r--gst-libs/gst/gl/gstglcontext.c4
1 files 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;