[mutter/wip/garnacho/wayland-emulated-output-transform: 17/27] backends/native: Remove unneeded call
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/garnacho/wayland-emulated-output-transform: 17/27] backends/native: Remove unneeded call
- Date: Tue, 23 Aug 2016 18:05:41 +0000 (UTC)
commit d58f94dd47dab142737952fb31c1f409e57cb074
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Jul 31 23:47:08 2016 +0200
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 files changed, 5 insertions(+), 11 deletions(-)
---
diff --git a/src/backends/native/meta-renderer-native.c b/src/backends/native/meta-renderer-native.c
index a3763b1..d775136 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]