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>
This commit is contained in:
David Herrmann committed 2013-09-04 15:02:03 +02:00
1 parent c4193b81d7
commit a4ed3959d8
4 files changed
+8

No files matched your search

+2
View 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;
+2
View File
@@ -29,6 +29,8 @@
* A basic fragment shader which applies a 2D texture.
*/
precision mediump float;
uniform sampler2D texture;
varying vec2 texpos;
+2
View File
@@ -29,6 +29,8 @@
* A basic fragment shader which applies a color directly.
*/
precision mediump float;
varying vec4 col;
void main()
+2
View File
@@ -30,6 +30,8 @@
* background colors.
*/
precision mediump float;
uniform sampler2D atlas;
uniform float advance_htex;
uniform float advance_vtex;