clutter-stage-cogl: Match EGL's behavior of eglSwapBuffersWithDamage
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

jigpu/clutter,jigpu/clutter,GNOME/clutter,jigpu/clutter,GNOME/clutter,Distrotech/clutter,Distrotech/clutter,Distrotech/clutter,jigpu/clutter,Distrotech/clutter,GNOME/clutter,GNOME/clutter,Distrotech/clutter,jigpu/clutter,Distrotech/clutter,jigpu/clutter,GNOME/clutter