high precision float for text shader

This commit is contained in:
Hannes Janetzek 2013-07-01 03:56:45 +02:00
parent 041d988d88
commit 175f6d84d1

View File

@ -125,7 +125,7 @@ public final class TextureRenderer {
private final static double COORD_DIV = 1.0 / GLRenderer.COORD_SCALE;
private final static String textVertexShader = ""
+ "precision mediump float; "
+ "precision highp float;"
+ "attribute vec4 vertex;"
+ "attribute vec2 tex_coord;"
+ "uniform mat4 u_mv;"
@ -149,7 +149,7 @@ public final class TextureRenderer {
+ "}";
private final static String textFragmentShader = ""
+ "precision mediump float;"
+ "precision highp float;"
+ "uniform sampler2D tex;"
+ "varying vec2 tex_c;"
+ "void main() {"