kmscon: set default precision for fragment shaders
authorDavid Herrmann <dh.herrmann@gmail.com>
Wed, 4 Sep 2013 13:02:03 +0000 (15:02 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Wed, 4 Sep 2013 13:02:03 +0000 (15:02 +0200)
With mesa-9.2 fragment shaders are required to define default precisions
as defined in the standard. We didn't do this.. whoops. Add the mediump
declarations and everything should be working again.

fixes fdo bug: #68934

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
src/static_blend.frag
src/static_blit.frag
src/static_fill.frag
src/static_gltex.frag

index 5ac9ac4..669558d 100644 (file)
@@ -29,6 +29,8 @@
  * A basic fragment shader which applies a 2D texture.
  */
 
+precision mediump float;
+
 uniform sampler2D texture;
 uniform vec3 fgcolor;
 uniform vec3 bgcolor;
index 7f0de9b..8b36d9e 100644 (file)
@@ -29,6 +29,8 @@
  * A basic fragment shader which applies a 2D texture.
  */
 
+precision mediump float;
+
 uniform sampler2D texture;
 varying vec2 texpos;
 
index 00f08ee..9241ce0 100644 (file)
@@ -29,6 +29,8 @@
  * A basic fragment shader which applies a color directly.
  */
 
+precision mediump float;
+
 varying vec4 col;
 
 void main()
index 49b8948..7804011 100644 (file)
@@ -30,6 +30,8 @@
  * background colors.
  */
 
+precision mediump float;
+
 uniform sampler2D atlas;
 uniform float advance_htex;
 uniform float advance_vtex;