We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d1c68e commit 882fa8bCopy full SHA for 882fa8b
imgui-SFML.cpp
@@ -1031,7 +1031,7 @@ void RenderDrawLists(ImDrawData* draw_data)
1031
clip_rect.w = (pcmd->ClipRect.w - clip_off.y) * clip_scale.y;
1032
1033
if (clip_rect.x < static_cast<float>(fb_width) && clip_rect.y < static_cast<float>(fb_height) &&
1034
- clip_rect.z >= 0.0f && clip_rect.w >= 0.0f)
+ clip_rect.z - clip_rect.x >= 0.0f && clip_rect.w - clip_rect.y >= 0.0f)
1035
{
1036
// Apply scissor/clipping rectangle
1037
glScissor((int)clip_rect.x,
0 commit comments