[mutter: 3/13] backends/native: Remove unneeded call
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter: 3/13] backends/native: Remove unneeded call
- Date: Wed, 24 Aug 2016 00:40:48 +0000 (UTC)
commit 4b4eb3a039f3a6ab854b2bda2bc3bb525efe4bf9
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]