Use all non-negative shader lengths, not just positive. Closes #1508

This commit is contained in:
baldurk
2019-08-30 11:42:09 +01:00
parent c6dd97947b
commit 608c283c9b
@@ -366,8 +366,8 @@ bool WrappedOpenGL::Serialise_glShaderSource(SerialiserType &ser, GLuint shaderH
sources.reserve(count);
for(GLsizei c = 0; c < count; c++)
{
sources.push_back((length && length[c] > 0) ? std::string(source[c], source[c] + length[c])
: std::string(source[c]));
sources.push_back((length && length[c] >= 0) ? std::string(source[c], source[c] + length[c])
: std::string(source[c]));
}
}