Fixed issues with deprecated GLenums