mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 09:04:38 +00:00
give useful data when not finding a given shader var
This commit is contained in:
parent
06aef7cff3
commit
a944b6435c
1 changed files with 1 additions and 1 deletions
|
|
@ -661,7 +661,7 @@ void GFXGLShader::initHandles()
|
||||||
// Index element 1 of the name to skip the '$' we inserted earier.
|
// Index element 1 of the name to skip the '$' we inserted earier.
|
||||||
GLint loc = glGetUniformLocation(mProgram, &desc.name.c_str()[1]);
|
GLint loc = glGetUniformLocation(mProgram, &desc.name.c_str()[1]);
|
||||||
|
|
||||||
AssertFatal(loc != -1, "");
|
AssertFatal(loc != -1, avar("uniform %s in shader file Vert: (%s) Frag: (%s)", &desc.name.c_str()[1], mVertexFile.getFullPath().c_str(), mPixelFile.getFullPath().c_str()));
|
||||||
|
|
||||||
HandleMap::Iterator handle = mHandles.find(desc.name);
|
HandleMap::Iterator handle = mHandles.find(desc.name);
|
||||||
S32 sampler = -1;
|
S32 sampler = -1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue