projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73862d5
)
gl: fix detection of extensions with GL versions < 3
author
Matthew Waters
<ystreet00@gmail.com>
Tue, 1 Apr 2014 10:48:26 +0000
(21:48 +1100)
committer
Matthew Waters
<ystreet00@gmail.com>
Tue, 1 Apr 2014 11:02:46 +0000
(22:02 +1100)
Mesa, for example returns valid pointers for glGetIntegerv and
glGetStringi even if the gl version is less than that required for
both those functions to supposedly exist.
https://bugzilla.gnome.org/show_bug.cgi?id=727324
gst-libs/gst/gl/gstglcontext.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/gl/gstglcontext.c
b/gst-libs/gst/gl/gstglcontext.c
index
1b8a21c
..
10796fe
100644
(file)
--- a/
gst-libs/gst/gl/gstglcontext.c
+++ b/
gst-libs/gst/gl/gstglcontext.c
@@
-801,7
+801,7
@@
gst_gl_context_create_thread (GstGLContext * context)
goto failure;
/* GL core contexts and GLES3 */
- if (gl->GetIntegerv && gl->GetStringi)
+ if (gl->GetIntegerv && gl->GetStringi
&& gl_major >= 3
)
ext_g_str = _build_extension_string (context);
if (ext_g_str && ext_g_str->len) {