From cd406eae7dbf25de997e708f2719a478114f0d58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tapani=20P=C3=A4lli?= Date: Mon, 15 May 2023 08:34:35 +0300 Subject: [PATCH] mesa: set a type for depth fallback texture MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise we will later attempt to figure out format with type GL_NONE which is not handled by _mesa_format_from_format_and_type. Fixes: 0c6e56c391a ("mesa: (more) correctly handle incomplete depth textures") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9012 Signed-off-by: Tapani Pälli Reviewed-by: Mike Blumenkrantz Part-of: --- src/mesa/main/texobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index 7f0cfed9bd1..91187a5db5b 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -1071,7 +1071,7 @@ _mesa_get_fallback_texture(struct gl_context *ctx, gl_texture_index tex, bool is if (is_depth) texFormat = st_ChooseTextureFormat(ctx, target, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT, - GL_NONE); + GL_UNSIGNED_INT); else texFormat = st_ChooseTextureFormat(ctx, target, GL_RGBA, GL_RGBA,