OpenGLDevice: Fix incorrect scissor rect

This commit is contained in:
Stenzek 2023-12-17 00:09:23 +10:00
parent 6328d08c14
commit e08f888e72
No known key found for this signature in database

View file

@ -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
{