Fixed crash if environment maps are enabled.
Fixed glowpoints from not lighting up anything.