fix glLight attenuation bad values by filtering before glcall