Skip to content

Commit

Permalink
libgui|GLShader: Terminator not needed
Browse files Browse the repository at this point in the history
Block maintains a zero terminator automatically.
  • Loading branch information
skyjake committed Apr 2, 2014
1 parent 7aab676 commit 0f45648
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion doomsday/libgui/src/graphics/glshader.cpp
Expand Up @@ -144,7 +144,6 @@ void GLShader::compile(Type shaderType, IByteArray const &source)
// Prepare the shader source. This would be the time to substitute any
// remaining symbols in the shader source.
Block src = prefixToSource(source, prefix);
src.append('\0');

char const *srcPtr = src.constData();
glShaderSource(d->name, 1, &srcPtr, 0);
Expand Down

0 comments on commit 0f45648

Please sign in to comment.