From 8e028cb4108a7a6e16136684d5c389350a32f3cb Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 20 Oct 2014 20:21:39 +0300 Subject: [PATCH] OpenGL ES requires floating-point precision to be declard in shaders --- source/programbuilder.cpp | 1 + 1 file changed, 1 insertion(+) 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 { -- 2.45.2