Renderer/UberShaderPreprocessor: Fix compilation error with some drivers
Former-commit-id: 10cc42b1ab1249d59b7b911e700f3bf146abc4f5 [formerly cd1c27e41936c49793e6566e8ae0f9ec44cf6b82] [formerly 04b38622de068b9f93ee759570140c0dc45309a7 [formerly 999ce6bcfad58271c8c035305814993a60830a03]] Former-commit-id: b16a232eaac6611e6848ccf0c6ca92b91684528c [formerly be808b5c7dc569547012a91e7f6cd148ed1624cb] Former-commit-id: e4d594358f11b228969d347f0a230192cb2f46e6
This commit is contained in:
parent
34c1208202
commit
0a656ca398
|
|
@ -76,7 +76,7 @@ namespace Nz
|
|||
|
||||
code << "#define GLSL_VERSION " << glslVersion << "\n\n";
|
||||
|
||||
code << "#define EARLY_FRAGMENT_TEST " << (glslVersion >= 420 || OpenGL::IsSupported(OpenGLExtension_Shader_ImageLoadStore)) << "\n\n";
|
||||
code << "#define EARLY_FRAGMENT_TEST " << ((glslVersion >= 420 || OpenGL::IsSupported(OpenGLExtension_Shader_ImageLoadStore)) ? '1' : '0') << "\n\n";
|
||||
|
||||
for (auto it = shaderStage.flags.begin(); it != shaderStage.flags.end(); ++it)
|
||||
code << "#define " << it->first << ' ' << ((stageFlags & it->second) ? '1' : '0') << '\n';
|
||||
|
|
|
|||
Loading…
Reference in New Issue