From 90121aa16999fbe74fe93efc4e7c08ee0a5399c5 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Fri, 13 Mar 2020 23:21:44 +1000 Subject: [PATCH] GPU: Fix VRAM display in software renderer --- src/core/gpu_sw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/gpu_sw.cpp b/src/core/gpu_sw.cpp index 31d33ea4c..c56cddd0d 100644 --- a/src/core/gpu_sw.cpp +++ b/src/core/gpu_sw.cpp @@ -115,7 +115,7 @@ void GPU_SW::UpdateDisplay() } else { - CopyOut15Bit(m_vram.data(), VRAM_WIDTH, m_display_texture_buffer.data(), VRAM_WIDTH, VRAM_HEIGHT, VRAM_HEIGHT); + CopyOut15Bit(m_vram.data(), VRAM_WIDTH, m_display_texture_buffer.data(), VRAM_WIDTH, VRAM_WIDTH, VRAM_HEIGHT); m_host_display->UpdateTexture(m_display_texture.get(), 0, 0, VRAM_WIDTH, VRAM_HEIGHT, m_display_texture_buffer.data(), VRAM_WIDTH * sizeof(u32)); m_host_display->SetDisplayTexture(m_display_texture->GetHandle(), VRAM_WIDTH, VRAM_HEIGHT, 0, 0, VRAM_WIDTH,