mesa: Ensure that the baselevel will never exceed the maximal supported number
authorCorentin Noël <corentin.noel@collabora.com>
Mon, 25 Sep 2023 09:08:13 +0000 (11:08 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 26 Sep 2023 08:24:04 +0000 (08:24 +0000)
commit0456f5bad11ab116391e3b11d7b8854b13f31e51
treebcaae3fe6a8ad673b3052fc23aac79cd908d6a7c
parent7e00ec1c6f45b34844c8a49493910ad256a59bfd
mesa: Ensure that the baselevel will never exceed the maximal supported number

GL_TEXTURE_BASE_LEVEL is only supported up to MAX_TEXTURE_LEVELS

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25332>
src/mesa/main/teximage.h
src/mesa/main/texobj.c
src/mesa/main/texobj.h
src/mesa/main/texparam.c
src/mesa/main/texstate.c