[cogl] wayland-winsys: Take possible pending resize into account
- From: Olivier Fourdan <ofourdan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl] wayland-winsys: Take possible pending resize into account
- Date: Tue, 11 Oct 2016 11:23:07 +0000 (UTC)
commit 5440b24f062e5ec963477a2367c0602a3d8957ea
Author: Olivier Fourdan <ofourdan redhat com>
Date: Mon Oct 10 17:09:24 2016 +0200
wayland-winsys: Take possible pending resize into account
When doing two resizes in a row, a pending resize may be different from
the new size whereas the cogl framebuffer is already of the same size,
in which case the new resize might be erroneously ignored.
https://bugzilla.gnome.org/show_bug.cgi?id=772707
cogl/winsys/cogl-winsys-egl-wayland.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/cogl/winsys/cogl-winsys-egl-wayland.c b/cogl/winsys/cogl-winsys-egl-wayland.c
index a0f3f34..320f224 100644
--- a/cogl/winsys/cogl-winsys-egl-wayland.c
+++ b/cogl/winsys/cogl-winsys-egl-wayland.c
@@ -784,6 +784,8 @@ cogl_wayland_onscreen_resize (CoglOnscreen *onscreen,
if (cogl_framebuffer_get_width (fb) != width ||
cogl_framebuffer_get_height (fb) != height ||
+ wayland_onscreen->pending_width != width ||
+ wayland_onscreen->pending_height != height ||
offset_x ||
offset_y)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]