mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 23:54:35 +00:00
Merge pull request #342 from lukaspj/fix/replace-dstrcmp
Replace uses of dStrCmp with new String::compare
This commit is contained in:
commit
d50f1f0b81
85 changed files with 213 additions and 189 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
|
||||
|
|
|
|||
|
|
@ -1158,7 +1158,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