1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Correct scissor enable in GraphicsDrawer::copyTexturedRect

This commit is contained in:
Sergey Lipskiy 2017-01-25 21:39:44 +07:00
parent 7c022aeb35
commit 9107c15f06

View File

@ -1464,7 +1464,6 @@ void GraphicsDrawer::copyTexturedRect(const CopyRectParams & _params)
gfxContext.enable(enable::CULL_FACE, false);
gfxContext.enable(enable::BLEND, false);
gfxContext.enable(enable::DEPTH_TEST, false);
gfxContext.enable(enable::SCISSOR_TEST, false);
gfxContext.enableDepthWrite(false);
Context::DrawRectParameters rectParams;
@ -1474,10 +1473,12 @@ void GraphicsDrawer::copyTexturedRect(const CopyRectParams & _params)
rectParams.vertices = m_rect;
rectParams.combiner = _params.combiner;
_params.combiner->activate();
gfxContext.enable(enable::SCISSOR_TEST, false);
gfxContext.drawRects(rectParams);
gfxContext.enable(enable::SCISSOR_TEST, true);
gSP.changed |= CHANGED_GEOMETRYMODE | CHANGED_VIEWPORT;
gDP.changed |= CHANGED_RENDERMODE | CHANGED_TILE | CHANGED_COMBINE | CHANGED_SCISSOR;
gDP.changed |= CHANGED_RENDERMODE | CHANGED_TILE | CHANGED_COMBINE;
}
void GraphicsDrawer::blitOrCopyTexturedRect(const BlitOrCopyRectParams & _params)