mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
glcontext: Fix unused variable warning by moving declaration where it is actually used
This commit is contained in:
parent
3c7095e5ad
commit
c5804b9af5
1 changed files with 2 additions and 3 deletions
|
@ -494,9 +494,6 @@ gst_gl_context_get_current_gl_api (guint * major, guint * minor)
|
|||
|
||||
goto next;
|
||||
} else {
|
||||
#if GST_GL_HAVE_OPENGL
|
||||
GLuint context_flags = 0;
|
||||
#endif
|
||||
sscanf (version, "%d.%d", &maj, &min);
|
||||
|
||||
if (maj <= 0 || min < 0)
|
||||
|
@ -504,6 +501,8 @@ gst_gl_context_get_current_gl_api (guint * major, guint * minor)
|
|||
|
||||
#if GST_GL_HAVE_OPENGL
|
||||
if (GetIntegerv && (maj > 3 || (maj == 3 && min > 1))) {
|
||||
GLuint context_flags = 0;
|
||||
|
||||
ret = GST_GL_API_NONE;
|
||||
GetIntegerv (GL_CONTEXT_PROFILE_MASK, &context_flags);
|
||||
if (context_flags & GL_CONTEXT_CORE_PROFILE_BIT)
|
||||
|
|
Loading…
Reference in a new issue