diff --git a/renderdoc/data/glsl_shaders.cpp b/renderdoc/data/glsl_shaders.cpp index 01db3f4e6..53b71a68a 100644 --- a/renderdoc/data/glsl_shaders.cpp +++ b/renderdoc/data/glsl_shaders.cpp @@ -30,8 +30,17 @@ void GenerateGLSLShader(std::vector &sources, ShaderType type, bool uniforms) { sources.resize(4); - sources[0] = - StringFormat::Fmt("#version %d %s\n", version, type == eShaderGLSLES ? "es" : "core"); + if(type == eShaderGLSLES) + { + if(version == 100) + sources[0] = "#version 100"; // no es suffix + else + sources[0] = StringFormat::Fmt("#version %d es\n", version); + } + else + { + sources[0] = StringFormat::Fmt("#version %d core\n", version); + } if(uniforms) sources[1] = GetEmbeddedResource(glsl_debuguniforms_h);