mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
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:
parent
d3f3787d64
commit
8a67cd90b3
1 changed files with 2 additions and 2 deletions
|
@ -537,9 +537,9 @@ GstGLAPI
|
||||||
gst_gl_context_get_current_gl_api (GstGLPlatform platform, guint * major,
|
gst_gl_context_get_current_gl_api (GstGLPlatform platform, guint * major,
|
||||||
guint * minor)
|
guint * minor)
|
||||||
{
|
{
|
||||||
const GLubyte *(*GetString) (GLenum name);
|
const GLubyte *(GSTGLAPI *GetString) (GLenum name);
|
||||||
#if GST_GL_HAVE_OPENGL
|
#if GST_GL_HAVE_OPENGL
|
||||||
void (*GetIntegerv) (GLenum name, GLuint * n);
|
void (GSTGLAPI *GetIntegerv) (GLenum name, GLuint * n);
|
||||||
#endif
|
#endif
|
||||||
const gchar *version;
|
const gchar *version;
|
||||||
gint maj, min, n;
|
gint maj, min, n;
|
||||||
|
|
Loading…
Reference in a new issue