Renderer/UberShaderPreprocessor: Fix EARLY_FRAGMENT_TESTS typo (Fixes #102)

This commit is contained in:
Lynix 2016-10-17 14:04:46 +02:00
parent 22ff8c488d
commit f858356bc2
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ namespace Nz
code << "#define GLSL_VERSION " << glslVersion << "\n\n"; code << "#define GLSL_VERSION " << glslVersion << "\n\n";
code << "#define EARLY_FRAGMENT_TEST " << ((glslVersion >= 420 || OpenGL::IsSupported(OpenGLExtension_Shader_ImageLoadStore)) ? '1' : '0') << "\n\n"; code << "#define EARLY_FRAGMENT_TESTS " << ((glslVersion >= 420 || OpenGL::IsSupported(OpenGLExtension_Shader_ImageLoadStore)) ? '1' : '0') << "\n\n";
for (auto it = shaderStage.flags.begin(); it != shaderStage.flags.end(); ++it) for (auto it = shaderStage.flags.begin(); it != shaderStage.flags.end(); ++it)
code << "#define " << it->first << ' ' << ((stageFlags & it->second) ? '1' : '0') << '\n'; code << "#define " << it->first << ' ' << ((stageFlags & it->second) ? '1' : '0') << '\n';