Skip to content

Commit f3b69aa

Browse files
Memphizpopcornmix
authored andcommitted
- 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
1 parent e9d8e73 commit f3b69aa

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/main.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,6 @@ std::string vsSource = "void main() { gl_Position = ftransform(); }";
412412
#endif
413413

414414
std::string fsHeader =
415-
"#ifdef GL_ES\n"
416-
"precision highp float;\n"
417-
"#endif\n"
418415
"#extension GL_OES_standard_derivatives : enable\n"
419416
"uniform vec3 iResolution;\n"
420417
"uniform float iGlobalTime;\n"

0 commit comments

Comments
 (0)