summaryrefslogtreecommitdiff
path: root/gst-libs/gst/gl/gstglslstage.c
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2016-03-10 17:46:05 +1100
committerMatthew Waters <matthew@centricular.com>2016-03-10 22:53:02 +1100
commit5061095e056864c08e676067d5a868fb2cb37a64 (patch)
treefd533adb6715c846a9108714a34b4f0e25a252a9 /gst-libs/gst/gl/gstglslstage.c
parent8ceeca93b289a51e60c04b5102cd26bcb7262929 (diff)
glshader: some compatibility changes for GL 1.4
GL 1.4 (with GL_ARB_shader_objects) doesn't have glIsProgram or glIsShader equivalents. As they are simply assertions, skip them when there isn't a valid function pointer.
Diffstat (limited to 'gst-libs/gst/gl/gstglslstage.c')
-rw-r--r--gst-libs/gst/gl/gstglslstage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/gl/gstglslstage.c b/gst-libs/gst/gl/gstglslstage.c
index caa5860bf..770b1d012 100644
--- a/gst-libs/gst/gl/gstglslstage.c
+++ b/gst-libs/gst/gl/gstglslstage.c
@@ -471,7 +471,7 @@ _compile_shader (GstGLContext * context, struct compile *data)
/* FIXME: supported threaded GLSL compilers and don't destroy compilation
* performance by getting the compilation result directly after compilation */
status = GL_FALSE;
- gl->GetShaderiv (priv->handle, GL_COMPILE_STATUS, &status);
+ vtable->GetShaderiv (priv->handle, GL_COMPILE_STATUS, &status);
len = 0;
vtable->GetShaderInfoLog (priv->handle, sizeof (info_buffer) - 1, &len,