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:
baldurk
2015-04-01 23:26:31 +01:00
parent 9d74612079
commit eed377c23d
+1 -1
View File
@@ -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");