mirror of
https://github.com/encounter/cpp3ds.git
synced 2026-03-30 11:04:22 -07:00
Forgot to add scissor rect to cache
This commit is contained in:
@@ -406,6 +406,7 @@ void RenderTarget::applyScissor(const UintRect& rect)
|
||||
if (right < 0) right = 0;
|
||||
C3D_SetScissor(GPU_SCISSOR_NORMAL, left, right, top, bottom);
|
||||
}
|
||||
m_cache.lastScissor = rect;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -451,6 +451,7 @@ void RenderTarget::applyScissor(const UintRect& rect)
|
||||
glCheck(glEnable(GL_SCISSOR_TEST));
|
||||
glScissor(rect.left, y, rect.width, rect.height);
|
||||
}
|
||||
m_cache.lastScissor = rect;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user