Renderer/UberShaderPreprocessor: Fix EARLY_FRAGMENT_TESTS typo (Fixes #102)
This commit is contained in:
parent
22ff8c488d
commit
f858356bc2
|
|
@ -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';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue