1
0
mirror of https://github.com/Swordfish90/cool-retro-term.git synced 2025-01-31 02:01:19 +00:00

Remove default precision on non ES platforms.

This commit is contained in:
Filippo Scognamiglio 2015-01-28 11:14:42 +01:00
parent 6912d74d71
commit 28d92dc68b
3 changed files with 10 additions and 3 deletions

View File

@ -312,7 +312,10 @@ Item{
blending: false
fragmentShader:
"precision highp float;" +
"#ifdef GL_ES
precision mediump float;
#endif\n" +
"uniform lowp float qt_Opacity;" +
"uniform lowp sampler2D txt_source;" +

View File

@ -151,7 +151,9 @@ ShaderEffect {
}"
fragmentShader: "
precision highp float;
#ifdef GL_ES
precision mediump float;
#endif
uniform sampler2D source;
uniform highp float qt_Opacity;

View File

@ -120,7 +120,9 @@ Item{
blending: true
fragmentShader: "
precision highp float;
#ifdef GL_ES
precision mediump float;
#endif
uniform highp sampler2D normals;
uniform highp sampler2D source;