From 4b4eb3a039f3a6ab854b2bda2bc3bb525efe4bf9 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Sun, 31 Jul 2016 23:47:08 +0200 Subject: [PATCH] backends/native: Remove unneeded call The call to _cogl_framebuffer_winsys_update_size() results in no-op here, as the framebuffer has already the right size when rebuilding the views. https://bugzilla.gnome.org/show_bug.cgi?id=745079 --- src/backends/native/meta-renderer-native.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/backends/native/meta-renderer-native.c b/src/backends/native/meta-renderer-native.c index a3763b1b8..d775136be 100644 --- a/src/backends/native/meta-renderer-native.c +++ b/src/backends/native/meta-renderer-native.c @@ -751,17 +751,11 @@ meta_renderer_native_init_onscreen (CoglOnscreen *onscreen, if (width == 0 || height == 0) return TRUE; - if (!meta_renderer_native_create_surface (renderer_native, - width, height, - &onscreen_native->surface, - &egl_onscreen->egl_surface, - error)) - return FALSE; - - - _cogl_framebuffer_winsys_update_size (framebuffer, width, height); - - return TRUE; + return meta_renderer_native_create_surface (renderer_native, + width, height, + &onscreen_native->surface, + &egl_onscreen->egl_surface, + error); } static void