mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 04:42:14 +00:00
clutter-stage-cogl: Match EGL's behavior of eglSwapBuffersWithDamage
-1 is explicitly an invalid value to pass to eglSwapBuffersWithDamage, and the specification admits as much: If eglSwapBuffersWithDamageEXT is called and <n_rects>, is less than zero or <n_rects> is greater than zero but <rects> is NULL, EGL_BAD_PARAMETER is generated. Fix up our usage of SwapBuffersWithDamage to match the behavior in the EGL specification. https://bugzilla.gnome.org/show_bug.cgi?id=745512
This commit is contained in:
parent
10a9657db0
commit
21ce9bc08b
@ -607,11 +607,7 @@ clutter_stage_cogl_redraw (ClutterStageWindow *stage_window)
|
||||
}
|
||||
else
|
||||
{
|
||||
damage[0] = 0;
|
||||
damage[1] = 0;
|
||||
damage[2] = geom.width;
|
||||
damage[3] = geom.height;
|
||||
ndamage = -1;
|
||||
ndamage = 0;
|
||||
}
|
||||
|
||||
/* push on the screen */
|
||||
|
Loading…
Reference in New Issue
Block a user