gl: bug fix for shadow