From bec66f0f46a0cabdf454425987d4418d19161698 Mon Sep 17 00:00:00 2001 From: Hugh Sanderson Date: Thu, 3 Oct 2024 15:37:31 +0800 Subject: [PATCH] Fix DirectRenderer clip-y offset --- project/src/common/Display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/common/Display.cpp b/project/src/common/Display.cpp index ffc90e715..25564ecc2 100644 --- a/project/src/common/Display.cpp +++ b/project/src/common/Display.cpp @@ -907,9 +907,9 @@ void DirectRenderer::Render( const RenderTarget &inTarget, const RenderState &in RenderState state(inState); gDirectRenderContext = inTarget.mHardware; + gDirectRenderContext->BeginDirectRender(inState.mClipRect); Rect clip = inState.mClipRect; clip.y = inTarget.mHardware->Height() - clip.y - clip.h; - gDirectRenderContext->BeginDirectRender(clip); if (gNmeRenderGcFree) { gc_exit_blocking();