From 9d7eb5b8829696ae6522a38d73357b415a02ca28 Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Sat, 29 Sep 2018 15:53:51 +0700 Subject: [PATCH] Fix in RDRAMtoColorBuffer::_copyFromRDRAM - draw rect in copy mode. --- src/BufferCopy/RDRAMtoColorBuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BufferCopy/RDRAMtoColorBuffer.cpp b/src/BufferCopy/RDRAMtoColorBuffer.cpp index 3ea6aa57..83e7b85f 100644 --- a/src/BufferCopy/RDRAMtoColorBuffer.cpp +++ b/src/BufferCopy/RDRAMtoColorBuffer.cpp @@ -243,7 +243,6 @@ void RDRAMtoColorBuffer::_copyFromRDRAM(u32 _height, bool _fullAlpha) gDP.otherMode.cycleType = G_CYC_COPY; CombinerInfo::get().setPolygonMode(DrawingState::TexRect); CombinerInfo::get().update(); - gDP.otherMode.cycleType = cycleType; Context::UpdateTextureDataParams updateParams; updateParams.handle = m_pTexture->name; @@ -281,6 +280,7 @@ void RDRAMtoColorBuffer::_copyFromRDRAM(u32 _height, bool _fullAlpha) false, true, false, m_pCurBuffer); dwnd().getDrawer().drawTexturedRect(texRectParams); gfxContext.enable(enable::SCISSOR_TEST, true); + gDP.otherMode.cycleType = cycleType; frameBufferList().setCurrentDrawBuffer();