diff --git a/renderdoc/driver/gl/gl_shader_refl.cpp b/renderdoc/driver/gl/gl_shader_refl.cpp index 0691b5242..b4237e328 100644 --- a/renderdoc/driver/gl/gl_shader_refl.cpp +++ b/renderdoc/driver/gl/gl_shader_refl.cpp @@ -200,6 +200,21 @@ static GLuint CreateSepProgram(const GLHookSet &gl, GLenum type, GLsizei numSour return 0; } +static bool isspacetab(char c) +{ + return c == '\t' || c == ' '; +} + +static bool isnewline(char c) +{ + return c == '\r' || c == '\n'; +} + +static bool iswhitespace(char c) +{ + return isspacetab(c) || isnewline(c); +} + GLuint MakeSeparableShaderProgram(const GLHookSet &gl, GLenum type, vector sources, vector *includepaths) { // in and out blocks are added separately, in case one is there already @@ -302,7 +317,7 @@ GLuint MakeSeparableShaderProgram(const GLHookSet &gl, GLenum type, vector