Related to 106535 where a similar fix was done for OpenGL. Although
not needed it is a small cleanup that might reduce the complexity
during GLSL shader compilation.
No end-user changes are expected. I doubt that the performance
increase is even noticeable.