diff --git a/renderdoc/data/glsl_shaders.cpp b/renderdoc/data/glsl_shaders.cpp index 53b71a68a..45d15ce63 100644 --- a/renderdoc/data/glsl_shaders.cpp +++ b/renderdoc/data/glsl_shaders.cpp @@ -43,9 +43,16 @@ void GenerateGLSLShader(std::vector &sources, ShaderType type, } if(uniforms) + { sources[1] = GetEmbeddedResource(glsl_debuguniforms_h); + } else - sources[1] = ""; + { + if(type == eShaderGLSLES) + sources[1] = "precision highp float; precision highp int;"; + else + sources[1] = ""; + } if(shader.find("#include \"texsample.h\"") != string::npos) {