mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 23:54:35 +00:00
Merge pull request #1245 from BeamNG/fix_glsl_include
Fix GLSL include when file is empty.
This commit is contained in:
commit
68efa70d9c
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