fixed function type mismatch errors - about to start testing the shadow map...