]> git.tdb.fi Git - libs/gl.git/commitdiff
OpenGL ES requires floating-point precision to be declard in shaders
authorMikko Rasa <tdb@tdb.fi>
Mon, 20 Oct 2014 17:21:39 +0000 (20:21 +0300)
committerMikko Rasa <tdb@tdb.fi>
Mon, 20 Oct 2014 17:21:39 +0000 (20:21 +0300)
source/programbuilder.cpp

index 3fb9094c180975111f4f43bb7a2e0f7beb1eeb9d..540518e49bf4223594f2e53cdbd8b6cb3be55f11 100644 (file)
@@ -385,6 +385,7 @@ string ProgramBuilder::create_source(const list<ShaderVariable *> &variables, Va
                {
                        if(use_blocks)
                                source += "#version 300 es\n";
+                       source += "precision mediump float;\n";
                }
                else
                {