Fix GLSL include when file is empty.

This commit is contained in:
LuisAntonRebollo 2015-03-08 23:25:23 +01:00
parent f87b3f2da7
commit e6b7cf108b

View file

@ -929,7 +929,7 @@ char* GFXGLShader::_handleIncludes( const Torque::Path& path, FileStream *s )
dFree(includedText);
manip.insert(q-buffer, sItx);
char* manipBuf = dStrdup(manip.c_str());
p = manipBuf + (p - buffer);
p = manipBuf + (q - buffer);
dFree(buffer);
buffer = manipBuf;
}