Fix bug with incorrect rendering on platforms when light was on