Make shadow map-related code more compatible with OpenGL-ES 2.0

Signed-off-by: Harm Hanemaaijer <fgenfb@yahoo.com>