From 24eed0152dd4208dfe2a47f5f1f47d83868a36a8 Mon Sep 17 00:00:00 2001 From: Memphiz Date: Wed, 27 May 2015 20:43:22 +0200 Subject: [PATCH] - fix compile error on gles hardware without high precision floats by checking GL_FRAGMENT_PRECISION_HIGH and define precision lowp if no highp is available --- src/main.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 1d41b68..f1717cd 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -324,9 +324,6 @@ std::string vsSource = "void main() { gl_Position = ftransform(); }"; #endif std::string fsHeader = -"#ifdef GL_ES\n" -"precision highp float;\n" -"#endif\n" "#extension GL_OES_standard_derivatives : enable\n" "uniform vec3 iResolution;\n" "uniform float iGlobalTime;\n"