mesa: report GL_INVALID_OPERATION for invalid glTextureBuffer target
authorMarek Olšák <marek.olsak@amd.com>
Mon, 27 Apr 2020 05:03:38 +0000 (01:03 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 29 Apr 2020 15:58:45 +0000 (15:58 +0000)
commita2542deb63adb3b5536947bcf9610c0ceca9da28
treecd61eb1c61654584b1afccb5e4ae61a567071137
parentffa314eab32b94956db1e0cd54d833333b050635
mesa: report GL_INVALID_OPERATION for invalid glTextureBuffer target

This fixes:
    KHR-GL46.direct_state_access.textures_buffer_errors
    KHR-GL46.direct_state_access.textures_buffer_range_errors

Fixes: 98e64e538af - main: Added entry point for glTextureBuffer
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4759>
src/mesa/main/teximage.c