4.17 Forward Rendering: Light Functions dont work with non shadow casting lights

This only seems to be a problem with the forward renderer.

Steps to reproduce:

  1. Create a new project and enable forward rendering.
  2. Create a basic light function material (I used a simple noise node)
  3. Create a point light in the scene .
  4. Apply Light function material to light.
  5. Toggle the Cast Shadows box on and off to see the effect appear and disappear.

It makes no difference if the light is static or dynamic.
I’ve attached a screen shot of two point lights, the left one doesn’t cast shadows and the right one does.