summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2013-09-04 15:02:03 +0200
committerDavid Herrmann <dh.herrmann@gmail.com>2013-09-04 15:02:03 +0200
commita4ed3959d8adece59c31e08fd75758cb4cd4d987 (patch)
treef4ce2997b7acbe5ff5c5b6af7123291883f25e39
parentc4193b81d79db7dd6055115049aca4044645af00 (diff)
kmscon: set default precision for fragment shaders
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>
-rw-r--r--src/static_blend.frag2
-rw-r--r--src/static_blit.frag2
-rw-r--r--src/static_fill.frag2
-rw-r--r--src/static_gltex.frag2
4 files changed, 8 insertions, 0 deletions
diff --git a/src/static_blend.frag b/src/static_blend.frag
index 5ac9ac4..669558d 100644
--- a/src/static_blend.frag
+++ b/src/static_blend.frag
@@ -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;
diff --git a/src/static_blit.frag b/src/static_blit.frag
index 7f0de9b..8b36d9e 100644
--- a/src/static_blit.frag
+++ b/src/static_blit.frag
@@ -29,6 +29,8 @@
* A basic fragment shader which applies a 2D texture.
*/
+precision mediump float;
+
uniform sampler2D texture;
varying vec2 texpos;
diff --git a/src/static_fill.frag b/src/static_fill.frag
index 00f08ee..9241ce0 100644
--- a/src/static_fill.frag
+++ b/src/static_fill.frag
@@ -29,6 +29,8 @@
* A basic fragment shader which applies a color directly.
*/
+precision mediump float;
+
varying vec4 col;
void main()
diff --git a/src/static_gltex.frag b/src/static_gltex.frag
index 49b8948..7804011 100644
--- a/src/static_gltex.frag
+++ b/src/static_gltex.frag
@@ -30,6 +30,8 @@
* background colors.
*/
+precision mediump float;
+
uniform sampler2D atlas;
uniform float advance_htex;
uniform float advance_vtex;