Skip to content

Commit

Permalink
OpenGLDevice: Fix incorrect scissor rect
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Dec 16, 2023
1 parent 6328d08 commit e08f888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/gpu_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ void GPUDevice::RenderImGui()
const s32 flipped_y =
static_cast<s32>(m_window_info.surface_height) - static_cast<s32>(pcmd->ClipRect.y) - height;
SetScissor(static_cast<s32>(pcmd->ClipRect.x), flipped_y, static_cast<s32>(pcmd->ClipRect.z - pcmd->ClipRect.x),
flipped_y + height);
height);
}
else
{
Expand Down

0 comments on commit e08f888

Please sign in to comment.