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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user