Only require GLSL extensions on proper GL, not on GLES

This commit is contained in:
baldurk
2023-04-05 15:06:05 +01:00
parent b74f2bd593
commit 1b72599382
+11 -4
View File
@@ -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,