mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 22:54:34 +00:00
Convert dStrcmp to String::compare for more cases
This commit is contained in:
parent
c999baf7ed
commit
197a62f6ea
22 changed files with 45 additions and 45 deletions
|
|
@ -1060,7 +1060,7 @@ void GFXD3D11Shader::_getShaderConstants( ID3D11ShaderReflection *refTable,
|
|||
#ifdef TORQUE_DEBUG
|
||||
AssertFatal(constantBufferDesc.Type == D3D_CT_CBUFFER, "Only scalar cbuffers supported for now.");
|
||||
|
||||
if (dStrcmp(constantBufferDesc.Name, "$Globals") != 0 && dStrcmp(constantBufferDesc.Name, "$Params") != 0)
|
||||
if (String::compare(constantBufferDesc.Name, "$Globals") != 0 && String::compare(constantBufferDesc.Name, "$Params") != 0)
|
||||
AssertFatal(false, "Only $Global and $Params cbuffer supported for now.");
|
||||
#endif
|
||||
#ifdef D3D11_DEBUG_SPEW
|
||||
|
|
|
|||
|
|
@ -1120,7 +1120,7 @@ DefineEngineFunction(saveCompositeTexture, void, (const char* pathR, const char*
|
|||
{
|
||||
U32 inputKey[4] = {0,0,0,0};
|
||||
|
||||
if (dStrcmp(inputKeyString, "") != 0)
|
||||
if (String::compare(inputKeyString, "") != 0)
|
||||
{
|
||||
dSscanf(inputKeyString, "%i %i %i %i", &inputKey[0], &inputKey[1], &inputKey[2], &inputKey[3]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue