cogl/onscreen/glx: Fix x/y mixup used to identify the current output

I haven't seen this cause a problem but it looks like the worst case is
that it would have put the wrong refresh rate value in CoglFrameInfo
for multi-monitor systems of differing frequencies. But even that seems
unlikely given `_cogl_xlib_renderer_output_for_rectangle` chooses the
output with the greatest overlap of the partially-correct rectangle.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3569>
This commit is contained in:
Daniel van Vugt 2024-02-08 17:57:49 +08:00
parent bf89ada2c1
commit c43f57f757

View File

@ -861,7 +861,7 @@ cogl_onscreen_glx_swap_region (CoglOnscreen *onscreen,
x_min = CLAMP (x_min, 0, framebuffer_width);
x_max = CLAMP (x_max, 0, framebuffer_width);
y_min = CLAMP (y_min, 0, framebuffer_width);
y_min = CLAMP (y_min, 0, framebuffer_height);
y_max = CLAMP (y_max, 0, framebuffer_height);
output =