mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
When patching shaders for separability, declare the extension
This commit is contained in:
@@ -339,6 +339,12 @@ GLuint MakeSeparableShaderProgram(WrappedOpenGL &drv, GLenum type, vector<string
|
||||
if(!strncmp(&src[it], "es", 2))
|
||||
it += sizeof("es") - 1;
|
||||
|
||||
it++;
|
||||
|
||||
// next line after #version, insert the extension declaration
|
||||
if(it < src.length())
|
||||
src.insert(it, "#extension GL_ARB_separate_shader_objects : enable\n");
|
||||
|
||||
// how deep are we in an #if. We want to place our definition
|
||||
// outside of any #ifs.
|
||||
int if_depth = 0;
|
||||
|
||||
Reference in New Issue
Block a user