mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-20 20:55:42 +00:00
Only require GLSL extensions on proper GL, not on GLES
This commit is contained in:
@@ -425,10 +425,17 @@ void GLReplay::InitDebugData()
|
||||
"#extension GL_ARB_shader_bit_encoding : require\n";
|
||||
}
|
||||
|
||||
vs = GenerateGLSLShader(GetEmbeddedResource(glsl_blit_vert), shaderType, glslBaseVer,
|
||||
"#extension GL_ARB_separate_shader_objects : require\n"
|
||||
"#extension GL_ARB_explicit_attrib_location : require\n"
|
||||
"#define FORCE_IO_LOCATION 1");
|
||||
rdcstr vsDefines = "#define FORCE_IO_LOCATION 1";
|
||||
|
||||
if(!IsGLES)
|
||||
{
|
||||
vsDefines =
|
||||
"#extension GL_ARB_separate_shader_objects : require\n"
|
||||
"#extension GL_ARB_explicit_attrib_location : require\n" +
|
||||
vsDefines;
|
||||
}
|
||||
|
||||
vs = GenerateGLSLShader(GetEmbeddedResource(glsl_blit_vert), shaderType, glslBaseVer, vsDefines);
|
||||
|
||||
// used to combine with custom shaders.
|
||||
// this has to have explicit locations on the output even though we don't normally use that,
|
||||
|
||||
Reference in New Issue
Block a user