From 90480edc02b3df125addc4b94ed6da7a3c7299ab Mon Sep 17 00:00:00 2001 From: rcaridade145 Date: Tue, 26 Nov 2024 13:19:02 +0000 Subject: [PATCH] Update src/Cafe/HW/Latte/Renderer/Vulkan/TextureReadbackVk.cpp Latte::E_GX2SURFFMT::R5_G6_B5_UNORM is 2 bytes per texel Co-authored-by: Exzap <13877693+Exzap@users.noreply.github.com> --- src/Cafe/HW/Latte/Renderer/Vulkan/TextureReadbackVk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cafe/HW/Latte/Renderer/Vulkan/TextureReadbackVk.cpp b/src/Cafe/HW/Latte/Renderer/Vulkan/TextureReadbackVk.cpp index 07b9f6c7..55d12610 100644 --- a/src/Cafe/HW/Latte/Renderer/Vulkan/TextureReadbackVk.cpp +++ b/src/Cafe/HW/Latte/Renderer/Vulkan/TextureReadbackVk.cpp @@ -82,7 +82,7 @@ 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 * 4; + return baseTexture->width * baseTexture->height * 2; } else if (textureView->format == Latte::E_GX2SURFFMT::R5_G5_B5_A1_UNORM ) {