diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2015-04-28 16:05:55 -0700 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2015-04-29 22:57:13 +0100 |
commit | c1987a5c06d912e8ff7d2541fc266f93c1d65477 (patch) | |
tree | 2b54b3a5a0fd16e5c5a9aa327740b39bbfc427a6 | |
parent | cdcdc7b02e5510c93d05e477090957bd644f0439 (diff) | |
download | clutter-c1987a5c06d912e8ff7d2541fc266f93c1d65477.tar.gz |
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
(cherry picked from commit 21ce9bc08b72f0904c6b682341481798d05f7d8c)
Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
-rw-r--r-- | clutter/cogl/clutter-stage-cogl.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/clutter/cogl/clutter-stage-cogl.c b/clutter/cogl/clutter-stage-cogl.c index 7f418a989..be61d4aad 100644 --- a/clutter/cogl/clutter-stage-cogl.c +++ b/clutter/cogl/clutter-stage-cogl.c @@ -623,11 +623,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 */ |