[clutter/clutter-1.10] wayland: Only try and resize the framebuffer if there is a valid framebuffer
- From: Robert Bragg <rbragg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.10] wayland: Only try and resize the framebuffer if there is a valid framebuffer
- Date: Tue, 20 Mar 2012 15:10:56 +0000 (UTC)
commit fabf2ddf0f390d5ac21090e37ed4c96a1ac9d468
Author: Rob Bradford <rob linux intel com>
Date: Tue Mar 20 13:31:28 2012 +0000
wayland: Only try and resize the framebuffer if there is a valid framebuffer
clutter/wayland/clutter-stage-wayland.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/clutter/wayland/clutter-stage-wayland.c b/clutter/wayland/clutter-stage-wayland.c
index 6b7a067..f5cb4f8 100644
--- a/clutter/wayland/clutter-stage-wayland.c
+++ b/clutter/wayland/clutter-stage-wayland.c
@@ -160,8 +160,11 @@ clutter_stage_wayland_resize (ClutterStageWindow *stage_window,
ClutterStageCogl *stage_cogl = CLUTTER_STAGE_COGL (stage_window);
/* Resize preserving top left */
- cogl_wayland_onscreen_resize (stage_cogl->onscreen, width, height, 0, 0);
- _clutter_stage_window_redraw (stage_window);
+ if (stage_cogl->onscreen)
+ {
+ cogl_wayland_onscreen_resize (stage_cogl->onscreen, width, height, 0, 0);
+ _clutter_stage_window_redraw (stage_window);
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]