projects
/
profile
/
ivi
/
clutter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e639cd
)
wayland: Only try and resize the framebuffer if there is a valid framebuffer
author
Rob Bradford
<rob@linux.intel.com>
Tue, 20 Mar 2012 13:31:28 +0000
(13:31 +0000)
committer
Rob Bradford
<rob@linux.intel.com>
Tue, 20 Mar 2012 13:32:20 +0000
(13:32 +0000)
clutter/wayland/clutter-stage-wayland.c
patch
|
blob
|
history
diff --git
a/clutter/wayland/clutter-stage-wayland.c
b/clutter/wayland/clutter-stage-wayland.c
index
6b7a067
..
f5cb4f8
100644
(file)
--- 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