[clutter] Remove an unused variable
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] Remove an unused variable
- Date: Fri, 17 Jun 2011 11:03:50 +0000 (UTC)
commit c79f613c2597b4ea8d338a76b20befa5d6e8ce60
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Fri Jun 17 12:03:21 2011 +0100
Remove an unused variable
And the compiler warning that comes with it.
clutter/cogl/clutter-stage-cogl.c | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
---
diff --git a/clutter/cogl/clutter-stage-cogl.c b/clutter/cogl/clutter-stage-cogl.c
index 1e3fe29..86f68b2 100644
--- a/clutter/cogl/clutter-stage-cogl.c
+++ b/clutter/cogl/clutter-stage-cogl.c
@@ -102,7 +102,6 @@ clutter_stage_cogl_realize (ClutterStageWindow *stage_window)
ClutterStageX11 *stage_x11 = CLUTTER_STAGE_X11 (stage_window);
#endif
ClutterBackend *backend;
- ClutterBackendCogl *backend_cogl;
CoglFramebuffer *framebuffer;
GError *error = NULL;
gfloat width = 800;
@@ -113,23 +112,22 @@ clutter_stage_cogl_realize (ClutterStageWindow *stage_window)
G_OBJECT_TYPE_NAME (stage_cogl),
stage_cogl);
- backend = clutter_get_default_backend ();
- backend_cogl = CLUTTER_BACKEND_COGL (backend);
+ backend = clutter_get_default_backend ();
#ifdef COGL_HAS_XLIB_SUPPORT
clutter_actor_get_size (CLUTTER_ACTOR (stage_x11->wrapper), &width, &height);
#endif
stage_cogl->onscreen = cogl_onscreen_new (backend->cogl_context,
- width, height);
+ width, height);
+
#ifdef COGL_HAS_XLIB_SUPPORT
if (stage_x11->xwin != None)
{
- cogl_onscreen_x11_set_foreign_window_xid (
- stage_cogl->onscreen,
- stage_x11->xwin,
- _clutter_stage_x11_update_foreign_event_mask,
- stage_x11);
+ cogl_onscreen_x11_set_foreign_window_xid (stage_cogl->onscreen,
+ stage_x11->xwin,
+ _clutter_stage_x11_update_foreign_event_mask,
+ stage_x11);
}
#endif
@@ -147,6 +145,7 @@ clutter_stage_cogl_realize (ClutterStageWindow *stage_window)
stage_cogl->onscreen = NULL;
return FALSE;
}
+
/* FIXME: for fullscreen Cogl platforms then the size we gave above
* will be ignored, so we need to make sure the stage size is
* updated to this size. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]