mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 08:15:44 +00:00
file name reporting for 'sampler not defined' and rtParams error reports.
This commit is contained in:
parent
5fa8504568
commit
aae017fcc3
1 changed files with 2 additions and 2 deletions
|
|
@ -365,7 +365,7 @@ bool ShaderData::_checkDefinition(GFXShader *shader)
|
||||||
{
|
{
|
||||||
if( !shader->findShaderConstHandle( String::ToString("$rtParams%d", pos)) )
|
if( !shader->findShaderConstHandle( String::ToString("$rtParams%d", pos)) )
|
||||||
{
|
{
|
||||||
String error = String::ToString("ShaderData(%s) sampler[%d] used but rtParams%d not used in shader compilation. Possible error", getName(), pos, pos);
|
String error = String::ToString("ShaderData(%s) sampler[%d] used but rtParams%d not used in shader compilation. Possible error", shader->getPixelShaderFile().c_str(), pos, pos);
|
||||||
Con::errorf( error );
|
Con::errorf( error );
|
||||||
error = true;
|
error = true;
|
||||||
}
|
}
|
||||||
|
|
@ -373,7 +373,7 @@ bool ShaderData::_checkDefinition(GFXShader *shader)
|
||||||
|
|
||||||
if(!find)
|
if(!find)
|
||||||
{
|
{
|
||||||
String error = String::ToString("ShaderData(%s) sampler %s not defined", getName(), samplers[i].c_str());
|
String error = String::ToString("ShaderData(%s) sampler %s not defined", shader->getPixelShaderFile().c_str(), samplers[i].c_str());
|
||||||
Con::errorf(error );
|
Con::errorf(error );
|
||||||
GFXAssertFatal(0, error );
|
GFXAssertFatal(0, error );
|
||||||
error = true;
|
error = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue