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:
parent
bf89ada2c1
commit
c43f57f757
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user