[mutter/wip/garnacho/wayland-emulated-output-transform: 18/30] 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: 18/30] backends/native: Remove unneeded call
- Date: Mon, 8 Aug 2016 11:21:22 +0000 (UTC)
commit e14a1fd90bc03910d0d120935379a976daf01728
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.
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]