mesa: Refactor error checking for GL_TEXTURE_BASE_LEVEL vs texture targets
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 13 Jan 2016 01:09:50 +0000 (17:09 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 28 Jun 2017 23:38:05 +0000 (16:38 -0700)
commite0acd625364528f80b35e80dbb4678a202566f6c
tree47098bf86b0ae47b20ceea33d73e3e74b5bb4ca7
parentd2c4f714d1a7752ad773a2662bf9800e0ea0b0c1
mesa: Refactor error checking for GL_TEXTURE_BASE_LEVEL vs texture targets

Add a big spec quotation justifying the error generated, which has
changed over the GL versions.

v2: Compact the spec quote based on a Khronos bug and discussion with Jason.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/main/texparam.c