mesa: change invalid texture swizzle error to GL_INVALID_ENUM
authorBrian Paul <brianp@vmware.com>
Thu, 24 Apr 2014 20:44:03 +0000 (14:44 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 30 Apr 2014 16:09:44 +0000 (10:09 -0600)
commit475f5ff64d7f64a9df2d7aabc772487bf24d1dd5
tree48038aaf779ee1df4d0c0744ae339ba3a39d4d95
parent1c6aa6599efd9b5cca270bef2e53fd7ac5f31647
mesa: change invalid texture swizzle error to GL_INVALID_ENUM

The original GL_EXT_texture_swizzle extensions said GL_INVALID_OPERATION
was to be generated when the an invalid swizzle was passed to
glTexParameter().  But in OpenGL 3.3 and later, the error should be
GL_INVALID_ENUM.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/texparam.c