From c8cc31ebb3911b1980f39162170742db0d4a5246 Mon Sep 17 00:00:00 2001 From: rcaridade145 Date: Tue, 26 Nov 2024 22:26:02 +0000 Subject: [PATCH] Addressing comments in review --- .../HW/Latte/Renderer/Vulkan/TextureReadbackVk.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/Cafe/HW/Latte/Renderer/Vulkan/TextureReadbackVk.cpp b/src/Cafe/HW/Latte/Renderer/Vulkan/TextureReadbackVk.cpp index 55d12610..bce23b59 100644 --- a/src/Cafe/HW/Latte/Renderer/Vulkan/TextureReadbackVk.cpp +++ b/src/Cafe/HW/Latte/Renderer/Vulkan/TextureReadbackVk.cpp @@ -81,13 +81,10 @@ uint32 LatteTextureReadbackInfoVk::GetImageSize(LatteTextureView* textureView) } else if (textureView->format == Latte::E_GX2SURFFMT::R5_G6_B5_UNORM ) { - cemu_assert(textureFormat == VK_FORMAT_R8G8B8A8_UNORM); - return baseTexture->width * baseTexture->height * 2; - } - else if (textureView->format == Latte::E_GX2SURFFMT::R5_G5_B5_A1_UNORM ) - { - cemu_assert(textureFormat == VK_FORMAT_R8G8B8A8_UNORM); - return baseTexture->width * baseTexture->height * 4; + if(textureFormat == VK_FORMAT_R5G6B5_UNORM_PACK16){ + return baseTexture->width * baseTexture->height * 2; + } + return 0; } else {