From: Mikko Rasa Date: Mon, 20 Oct 2014 17:21:39 +0000 (+0300) Subject: OpenGL ES requires floating-point precision to be declard in shaders X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=8e028cb4108a7a6e16136684d5c389350a32f3cb;p=libs%2Fgl.git OpenGL ES requires floating-point precision to be declard in shaders --- diff --git a/source/programbuilder.cpp b/source/programbuilder.cpp index 3fb9094c..540518e4 100644 --- a/source/programbuilder.cpp +++ b/source/programbuilder.cpp @@ -385,6 +385,7 @@ string ProgramBuilder::create_source(const list &variables, Va { if(use_blocks) source += "#version 300 es\n"; + source += "precision mediump float;\n"; } else {