mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 07:34:45 +00:00
Fix GLSL include when file is empty.
This commit is contained in:
parent
f87b3f2da7
commit
e6b7cf108b
1 changed files with 1 additions and 1 deletions
|
|
@ -929,7 +929,7 @@ char* GFXGLShader::_handleIncludes( const Torque::Path& path, FileStream *s )
|
||||||
dFree(includedText);
|
dFree(includedText);
|
||||||
manip.insert(q-buffer, sItx);
|
manip.insert(q-buffer, sItx);
|
||||||
char* manipBuf = dStrdup(manip.c_str());
|
char* manipBuf = dStrdup(manip.c_str());
|
||||||
p = manipBuf + (p - buffer);
|
p = manipBuf + (q - buffer);
|
||||||
dFree(buffer);
|
dFree(buffer);
|
||||||
buffer = manipBuf;
|
buffer = manipBuf;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue