mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-23 08:33:50 +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
|
|
@ -309,7 +309,7 @@ void VertPixelConnectorGLSL::print( Stream &stream, bool isVerterShader )
|
|||
U8 output[256];
|
||||
|
||||
Var *var = mElementList[i];
|
||||
if(!dStrcmp((const char*)var->name, "gl_Position"))
|
||||
if(!String::compare((const char*)var->name, "gl_Position"))
|
||||
continue;
|
||||
|
||||
if(var->arraySize <= 1)
|
||||
|
|
@ -339,7 +339,7 @@ void VertPixelConnectorGLSL::printOnMain( Stream &stream, bool isVerterShader )
|
|||
U8 output[256];
|
||||
|
||||
Var *var = mElementList[i];
|
||||
if(!dStrcmp((const char*)var->name, "gl_Position"))
|
||||
if(!String::compare((const char*)var->name, "gl_Position"))
|
||||
continue;
|
||||
|
||||
dSprintf((char*)output, sizeof(output), " %s IN_%s = _%s_;\r\n", var->type, var->name, var->connectName);
|
||||
|
|
@ -415,7 +415,7 @@ void VertPixelConnectorGLSL::printStructDefines( Stream &stream, bool in )
|
|||
U8 output[256];
|
||||
|
||||
Var *var = mElementList[i];
|
||||
if(!dStrcmp((const char*)var->name, "gl_Position"))
|
||||
if(!String::compare((const char*)var->name, "gl_Position"))
|
||||
continue;
|
||||
|
||||
if(!in)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue