mesa: add missing stencil formats to _mesa_is_stencil_format

Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13070
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34931>
This commit is contained in:
Tapani Pälli
2025-05-12 17:56:58 +03:00
committed by Marge Bot
parent 4b73d7e817
commit 720dae85f2
+4
View File
@@ -1223,6 +1223,10 @@ _mesa_is_stencil_format(GLenum format)
{
switch (format) {
case GL_STENCIL_INDEX:
case GL_STENCIL_INDEX1:
case GL_STENCIL_INDEX4:
case GL_STENCIL_INDEX8:
case GL_STENCIL_INDEX16:
return GL_TRUE;
default:
return GL_FALSE;