This PR fixes a compiler issue when using NVIDIA. It was introduced when adding the reflection probes. NVIDIA compiler doesn't like to access elements in a bound resource and pass it directly as a parameter. It should first be added as a local variable. Pull Request: https://projects.blender.org/blender/blender/pulls/109891