NVIDIA fails with segmentation fault when compiling shaders due to recent changes.
This PR tweaks the shader code to work around the segmentation fault.
Issue introduced by: 7f43699ebf
Pull Request: https://projects.blender.org/blender/blender/pulls/118744