mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 23:54:35 +00:00
Remove some dead code from OpenGL shadergen.
This commit is contained in:
parent
d90baad6fa
commit
c78f38fe0b
1 changed files with 1 additions and 17 deletions
|
|
@ -373,17 +373,7 @@ Vector<String> initDeprecadedDefines()
|
||||||
|
|
||||||
void VertPixelConnectorGLSL::printStructDefines( Stream &stream, bool in )
|
void VertPixelConnectorGLSL::printStructDefines( Stream &stream, bool in )
|
||||||
{
|
{
|
||||||
const char* connectionDir;
|
const char* connectionDir = in ? "IN" : "OUT";
|
||||||
|
|
||||||
if(in)
|
|
||||||
{
|
|
||||||
connectionDir = "IN";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
|
|
||||||
connectionDir = "OUT";
|
|
||||||
}
|
|
||||||
|
|
||||||
static Vector<String> deprecatedDefines = initDeprecadedDefines();
|
static Vector<String> deprecatedDefines = initDeprecadedDefines();
|
||||||
|
|
||||||
|
|
@ -407,12 +397,6 @@ void VertPixelConnectorGLSL::printStructDefines( Stream &stream, bool in )
|
||||||
stream.write( dStrlen((char*)output), output );
|
stream.write( dStrlen((char*)output), output );
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( deprecatedDefines.contains((char*)var->name))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
dSprintf((char*)output, sizeof(output), "#define %s %s_%s\r\n", var->name, connectionDir, var->name);
|
|
||||||
stream.write( dStrlen((char*)output), output );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
stream.write( dStrlen((char*)newLine), newLine );
|
stream.write( dStrlen((char*)newLine), newLine );
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue