summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSquall Leonhart <danialhorton@hotmail.com>2023-08-11 00:51:24 +1000
committerSquall-Leonhart <danialhorton@hotmail.com>2023-08-11 08:18:54 +1000
commitb9ab44ed0e8706eed9d7fa6f3d6e70b0299ef42e (patch)
treebbd4a39c4805c8f9beb308de27139d49bcea4621 /src
parent9d3a293a4ea17b60146c10e7561c0fd1219fd6c1 (diff)
Fix an assert in the format lookup table fir Z16
Came across this while looking into Asterix and Obelix XXL glitching
Diffstat (limited to 'src')
-rw-r--r--src/video_core/texture_cache/format_lookup_table.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/texture_cache/format_lookup_table.cpp b/src/video_core/texture_cache/format_lookup_table.cpp
index 11ced6c38..0105bbff4 100644
--- a/src/video_core/texture_cache/format_lookup_table.cpp
+++ b/src/video_core/texture_cache/format_lookup_table.cpp
@@ -138,7 +138,7 @@ PixelFormat PixelFormatFromTextureInfo(TextureFormat format, ComponentType red,
return PixelFormat::E5B9G9R9_FLOAT;
case Hash(TextureFormat::Z32, FLOAT):
return PixelFormat::D32_FLOAT;
- case Hash(TextureFormat::Z16, UNORM):
+ case Hash(TextureFormat::Z16, UNORM, UINT, UINT, UINT, LINEAR):
return PixelFormat::D16_UNORM;
case Hash(TextureFormat::Z24S8, UINT, UNORM, UNORM, UNORM, LINEAR):
return PixelFormat::S8_UINT_D24_UNORM;