Browse Source

Merge pull request #11258 from Squall-Leonhart/Z16_Assert_Fix

Fix a logged assert in the format lookup table for Z16
pull/15/merge
liamwhite 2 years ago
committed by GitHub
parent
commit
974380fe10
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/video_core/texture_cache/format_lookup_table.cpp

2
src/video_core/texture_cache/format_lookup_table.cpp

@ -140,6 +140,8 @@ PixelFormat PixelFormatFromTextureInfo(TextureFormat format, ComponentType red,
return PixelFormat::D32_FLOAT;
case Hash(TextureFormat::Z16, UNORM):
return PixelFormat::D16_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;
case Hash(TextureFormat::Z24S8, UINT, UNORM, UINT, UINT, LINEAR):

Loading…
Cancel
Save