gl: enable glvideomixer on GLES2
authorJulien Isorce <julien.isorce@collabora.co.uk>
Sun, 22 Jun 2014 12:14:27 +0000 (13:14 +0100)
committerJulien Isorce <julien.isorce@collabora.co.uk>
Wed, 25 Jun 2014 05:55:11 +0000 (06:55 +0100)
ext/gl/gstglvideomixer.c

index 7b3904e..7dcb936 100644 (file)
@@ -81,6 +81,9 @@ static const gchar *video_mixer_v_src =
 
 /* fragment source */
 static const gchar *video_mixer_f_src =
+    "#ifdef GL_ES\n"
+    "precision mediump float;\n"
+    "#endif\n"
     "uniform sampler2D texture;                     \n"
     "uniform float alpha;\n"
     "varying vec2 v_texCoord;                            \n"