diff options
author | Tapani Pälli <tapani.palli@intel.com> | 2023-05-15 08:34:35 +0300 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-05-16 05:15:00 +0000 |
commit | cd406eae7dbf25de997e708f2719a478114f0d58 (patch) | |
tree | 13a951fb429f2b57fa08146bc69e58dac5aeb39f | |
parent | e0c3324695cd0232ef08df0394ba8922766bef3d (diff) | |
download | mesa-cd406eae7dbf25de997e708f2719a478114f0d58.tar.gz |
mesa: set a type for depth fallback texture
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 <tapani.palli@intel.com>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23013>
-rw-r--r-- | src/mesa/main/texobj.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |