Explorar o código

meant to add the unorms as well

Squall Leonhart %!s(int64=2) %!d(string=hai) anos
pai
achega
4b0291172e
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/video_core/renderer_vulkan/vk_texture_cache.cpp

+ 3 - 1
src/video_core/renderer_vulkan/vk_texture_cache.cpp

@@ -1236,7 +1236,9 @@ void TextureCacheRuntime::ConvertImage(Framebuffer* dst, ImageView& dst_view, Im
         }
         break;
     case PixelFormat::D32_FLOAT:
-        if (src_view.format == PixelFormat::A8B8G8R8_SRGB ||
+        if (src_view.format == PixelFormat::A8B8G8R8_UNORM ||
+            src_view.format == PixelFormat::B8G8R8A8_UNORM ||
+            src_view.format == PixelFormat::A8B8G8R8_SRGB ||
             src_view.format == PixelFormat::B8G8R8A8_SRGB) {
             return blit_image_helper.ConvertABGR8ToD32F(dst, src_view);
         }