From 720dae85f20c77c0feacd26d8881e5c2f65253d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tapani=20P=C3=A4lli?= Date: Mon, 12 May 2025 17:56:58 +0300 Subject: [PATCH] mesa: add missing stencil formats to _mesa_is_stencil_format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: mesa-stable Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13070 Signed-off-by: Tapani Pälli Reviewed-by: Adam Jackson Reviewed-by: Erik Faye-Lund Part-of: --- src/mesa/main/glformats.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c index 6f74085d228..5efd55148f7 100644 --- a/src/mesa/main/glformats.c +++ b/src/mesa/main/glformats.c @@ -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;