mesa/es: Validate ColorPointer types in Mesa code rather than the ES wrapper