diff options
author | Eric Anholt <eric@anholt.net> | 2010-04-26 15:20:49 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-06-03 17:08:42 -0700 |
commit | 4932a19761eed9eda80098a2ab4457122760b949 (patch) | |
tree | aa385bc662a146d878005718e7e13885e16b4a64 | |
parent | 6d5710f5af3b8ce2e46b3b66a9d437ba27108e76 (diff) |
gstgldisplay: Tell GLSL we need ARB_draw_buffers in the shader using it.
We should be checking for ARB_draw_buffers before even using this
shader (potentially falling back to 3 passes otherwise?), but this
will at least not anger the compiler if it does support it.
-rw-r--r-- | gst-libs/gst/gl/gstgldisplay.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst-libs/gst/gl/gstgldisplay.c b/gst-libs/gst/gl/gstgldisplay.c index b95ce64..086c29b 100644 --- a/gst-libs/gst/gl/gstgldisplay.c +++ b/gst-libs/gst/gl/gstgldisplay.c @@ -369,6 +369,7 @@ gst_gl_display_init (GstGLDisplay * display, GstGLDisplayClass * klass) //to attach multiple textures to a frame buffer object display->text_shader_download_I420_YV12 = "#extension GL_ARB_texture_rectangle : enable\n" + "#extension GL_ARB_draw_buffers : enable\n" "uniform sampler2DRect tex;\n" "uniform float w, h;\n" "void main(void) {\n" |