mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
VideoCommon: avoid assuming global state exists for 'EndUtilityDrawing', use last stored viewport/scissor rect instead
This commit is contained in:
@@ -265,6 +265,14 @@ void SetScissorAndViewport(FramebufferManager* frame_buffer_manager, ScissorPos
|
||||
y = static_cast<float>(g_gfx->GetCurrentFramebuffer()->GetHeight()) - y - height;
|
||||
|
||||
g_gfx->SetViewport(x, y, width, height, near_depth, far_depth);
|
||||
|
||||
g_gfx->StoreViewportAndScissor(AbstractGfx::ViewportAndScissor{.scissor_rect = converted_rc,
|
||||
.viewport_x = x,
|
||||
.viewport_y = y,
|
||||
.viewport_width = width,
|
||||
.viewport_height = height,
|
||||
.viewport_near_depth = near_depth,
|
||||
.viewport_far_depth = far_depth});
|
||||
}
|
||||
|
||||
void SetDepthMode()
|
||||
|
||||
Reference in New Issue
Block a user