From 50dd3ed2e0ce005e26ba374ba875f445ac35af53 Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Thu, 16 Apr 2020 17:28:07 +0700 Subject: [PATCH] Set clip ratio to 1 when render image from DRARM. Fixed #2211 Duplicate image in Dr. Mario --- ini/GLideN64.custom.ini | 1 + src/BufferCopy/RDRAMtoColorBuffer.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/ini/GLideN64.custom.ini b/ini/GLideN64.custom.ini index 6323d526..dbc40825 100644 --- a/ini/GLideN64.custom.ini +++ b/ini/GLideN64.custom.ini @@ -47,6 +47,7 @@ frameBufferEmulation\copyDepthToRDRAM=1 [DR.MARIO%2064] Good_Name=Dr. Mario 64 (U) frameBufferEmulation\copyFromRDRAM=1 +frameBufferEmulation\copyToRDRAM=0 [EXTREME_G] Good_Name=Extreme-G (E) diff --git a/src/BufferCopy/RDRAMtoColorBuffer.cpp b/src/BufferCopy/RDRAMtoColorBuffer.cpp index c15315ba..e3bf2140 100644 --- a/src/BufferCopy/RDRAMtoColorBuffer.cpp +++ b/src/BufferCopy/RDRAMtoColorBuffer.cpp @@ -173,6 +173,7 @@ u32 RGBA32ToABGR32(u32 col, bool _fullAlpha) void RDRAMtoColorBuffer::_copyFromRDRAM(u32 _height, bool _fullAlpha) { Cleaner cleaner(this); + ValueKeeper otherMode(gSP.clipRatio, 1U); const u32 address = m_pCurBuffer->m_startAddress; const u32 width = m_pCurBuffer->m_width; const u32 height = _height;