Skip to content

Commit

Permalink
GPU: Fix prerotated presenting with OpenGL
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Feb 14, 2025
1 parent 995a34e commit 3a44c3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/gpu_presenter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -726,8 +726,8 @@ void GPUPresenter::DrawScreenQuad(const GSVector4i rect, const GSVector4 uv_rect
WindowInfo::PreRotation prerotation)
{
const GSVector4i real_rect = GPUSwapChain::PreRotateClipRect(prerotation, target_size, rect);
g_gpu_device->SetScissor(g_gpu_device->UsesLowerLeftOrigin() ? GPUDevice::FlipToLowerLeft(real_rect, target_size.y) :
real_rect);
g_gpu_device->SetScissor(
g_gpu_device->UsesLowerLeftOrigin() ? GPUDevice::FlipToLowerLeft(real_rect, final_target_size.y) : real_rect);

GPUBackend::ScreenVertex* vertices;
u32 space;
Expand Down

0 comments on commit 3a44c3a

Please sign in to comment.