Browse Source

Merge pull request #1100 from JeffProgrammer/glslShadergenDefineFix

Fixed define bug for OpenGL shadergen.
Luis Anton Rebollo 10 years ago
parent
commit
d90baad6fa
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Engine/source/shaderGen/GLSL/shaderCompGLSL.cpp

+ 1 - 0
Engine/source/shaderGen/GLSL/shaderCompGLSL.cpp

@@ -405,6 +405,7 @@ void VertPixelConnectorGLSL::printStructDefines( Stream &stream, bool in )
       {
       {
          dSprintf((char*)output, sizeof(output), "#define %s_%s _%s_\r\n", connectionDir, var->name, var->connectName);
          dSprintf((char*)output, sizeof(output), "#define %s_%s _%s_\r\n", connectionDir, var->name, var->connectName);
          stream.write( dStrlen((char*)output), output );
          stream.write( dStrlen((char*)output), output );
+         continue;
       }
       }
 
 
       if( deprecatedDefines.contains((char*)var->name))
       if( deprecatedDefines.contains((char*)var->name))