main: return error if asking for GL_TEXTURE_BORDER_COLOR in TEXTURE_2D_MULTISAMPLE...
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Mon, 7 Nov 2016 10:49:13 +0000 (11:49 +0100)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 15 Nov 2016 06:44:12 +0000 (07:44 +0100)
commit308b06d471ba41177659d438632053cdce702b39
treedd80fc8f5eca7a0e1e7fa01b937f83469e516452
parenta46bc3f70a22a71dc2977f7394841e1b19bb68b6
main: return error if asking for GL_TEXTURE_BORDER_COLOR in TEXTURE_2D_MULTISAMPLE{_ARRAY} through TexParameter{i,Ii,Iui}v()

OpenGL ES 3.2 says in section 8.10. "TEXTURE PARAMETERS", at the end of
the section:

"An INVALID_ENUM error is generated if target is TEXTURE_2D_-
MULTISAMPLE or TEXTURE_2D_MULTISAMPLE_ARRAY , and pname is any
sampler state from table 21.12."

GL_TEXTURE_BORDER_COLOR is present in that table.

v2:
- Add check to _mesa_texture_parameteriv() (Kenneth)

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98250

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/texparam.c