mesa/es: Validate glClear mask in Mesa code rather than the ES wrapper