From a4ed3959d8adece59c31e08fd75758cb4cd4d987 Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Wed, 4 Sep 2013 15:02:03 +0200 Subject: 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 --- src/static_blend.frag | 2 ++ src/static_blit.frag | 2 ++ src/static_fill.frag | 2 ++ src/static_gltex.frag | 2 ++ 4 files changed, 8 insertions(+) (limited to 'src') 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; -- cgit v1.2.3