From 1e1c75d5520606ce8f67979519f1a5b51e90d058 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Tue, 25 Oct 2022 22:14:16 -0700 Subject: [PATCH] GE Debugger: Correct UV display with prescale. Sometimes these weren't flushed yet, and it made the texture preview and vertices confusing and wrong (using old factors, not just no factors.) --- GPU/GPUCommon.cpp | 1 + GPU/Software/SoftGpu.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/GPU/GPUCommon.cpp b/GPU/GPUCommon.cpp index c80aab881c..b8c80a76ed 100644 --- a/GPU/GPUCommon.cpp +++ b/GPU/GPUCommon.cpp @@ -3204,6 +3204,7 @@ std::vector GPUCommon::GetFramebufferList() const { } bool GPUCommon::GetCurrentSimpleVertices(int count, std::vector &vertices, std::vector &indices) { + UpdateUVScaleOffset(); return drawEngineCommon_->GetCurrentSimpleVertices(count, vertices, indices); } diff --git a/GPU/Software/SoftGpu.cpp b/GPU/Software/SoftGpu.cpp index ba6da9455c..04e3c1d5c7 100644 --- a/GPU/Software/SoftGpu.cpp +++ b/GPU/Software/SoftGpu.cpp @@ -1423,8 +1423,8 @@ bool SoftGPU::GetCurrentClut(GPUDebugBuffer &buffer) return true; } -bool SoftGPU::GetCurrentSimpleVertices(int count, std::vector &vertices, std::vector &indices) -{ +bool SoftGPU::GetCurrentSimpleVertices(int count, std::vector &vertices, std::vector &indices) { + UpdateUVScaleOffset(); return drawEngine_->transformUnit.GetCurrentSimpleVertices(count, vertices, indices); }