We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94bea4b commit 75d795fCopy full SHA for 75d795f
1 file changed
source/MaterialXRenderGlsl/GlslProgram.cpp
@@ -549,8 +549,8 @@ void GlslProgram::bindTextures(ImageHandlerPtr imageHandler)
549
// Lighting textures are handled in the bindLighting() call.
550
// If no texture can be loaded then the default color defined in
551
// "samplingProperties" will be used to create a fallback texture.
552
- if (fileName != HW::ENV_RADIANCE &&
553
- fileName != HW::ENV_IRRADIANCE)
+ if (uniform.first != HW::ENV_RADIANCE &&
+ uniform.first != HW::ENV_IRRADIANCE)
554
{
555
ImageSamplingProperties samplingProperties;
556
samplingProperties.setProperties(uniform.first, publicUniforms);
0 commit comments