mesa: change error code of *TextureSubImage* for incorreect target
authorYevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>
Thu, 16 Jul 2020 12:13:08 +0000 (15:13 +0300)
committerMarge Bot <eric+marge@anholt.net>
Mon, 20 Jul 2020 19:58:14 +0000 (19:58 +0000)
commit101400d4495d3ab6dba4af70782698ef13b3b06c
tree6e1f28910b524e0c49ca34ca9adf03a5bd447a74
parentaf92348b1cdc4158e049d5a8d9e71ba7e054a87f
mesa: change error code of *TextureSubImage* for incorreect target

According to the "Errors" list of the OpenGL 4.6 spec, section 8.6
"Alternate Texture Image Specification Commands":

An INVALID_OPERATION error is generated by *TextureSubImage* if the
effective target of texture does not match the command, as shown in table 8.15.

Signed-off-by: Yevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5934>
src/mesa/main/teximage.c