wayland: Only try and resize the framebuffer if there is a valid framebuffer
This commit is contained in:
parent
1e639cd0ee
commit
568951b8ac
@ -160,8 +160,11 @@ clutter_stage_wayland_resize (ClutterStageWindow *stage_window,
|
|||||||
ClutterStageCogl *stage_cogl = CLUTTER_STAGE_COGL (stage_window);
|
ClutterStageCogl *stage_cogl = CLUTTER_STAGE_COGL (stage_window);
|
||||||
|
|
||||||
/* Resize preserving top left */
|
/* Resize preserving top left */
|
||||||
cogl_wayland_onscreen_resize (stage_cogl->onscreen, width, height, 0, 0);
|
if (stage_cogl->onscreen)
|
||||||
_clutter_stage_window_redraw (stage_window);
|
{
|
||||||
|
cogl_wayland_onscreen_resize (stage_cogl->onscreen, width, height, 0, 0);
|
||||||
|
_clutter_stage_window_redraw (stage_window);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user