mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-23 18:30:44 +00:00
Make sure adding both gl_in and gl_out redeclares to same string works
* For everything but vertex shaders to make a separable program we need to redeclare gl_in and gl_out. If both of these end up in the same string the second insertion was trampling the first one - now they will both go in properly.
This commit is contained in:
@@ -282,7 +282,7 @@ GLuint MakeSeparableShaderProgram(const GLHookSet &gl, GLenum type, vector<strin
|
||||
|
||||
for(size_t i=0; i < sources.size(); i++)
|
||||
{
|
||||
string &src = sources[i];
|
||||
string src = strings[i];
|
||||
|
||||
size_t len = src.length();
|
||||
size_t it = src.find("#version");
|
||||
|
||||
Reference in New Issue
Block a user