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:
1 parent
c4193b81d7
commit
a4ed3959d8
4 files changed
+8
No files matched your search
@@ -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;
|
||||
|
||||
@@ -29,6 +29,8 @@
|
||||
* A basic fragment shader which applies a 2D texture.
|
||||
*/
|
||||
|
||||
precision mediump float;
|
||||
|
||||
uniform sampler2D texture;
|
||||
varying vec2 texpos;
|
||||
|
||||
|
||||
@@ -29,6 +29,8 @@
|
||||
* A basic fragment shader which applies a color directly.
|
||||
*/
|
||||
|
||||
precision mediump float;
|
||||
|
||||
varying vec4 col;
|
||||
|
||||
void main()
|
||||
|
||||
@@ -30,6 +30,8 @@
|
||||
* background colors.
|
||||
*/
|
||||
|
||||
precision mediump float;
|
||||
|
||||
uniform sampler2D atlas;
|
||||
uniform float advance_htex;
|
||||
uniform float advance_vtex;
|
||||
|
||||
Reference in new issue
Block a user