Remove an unused variable
And the compiler warning that comes with it.
This commit is contained in:
parent
daaa4c5b96
commit
c79f613c25
@ -102,7 +102,6 @@ clutter_stage_cogl_realize (ClutterStageWindow *stage_window)
|
|||||||
ClutterStageX11 *stage_x11 = CLUTTER_STAGE_X11 (stage_window);
|
ClutterStageX11 *stage_x11 = CLUTTER_STAGE_X11 (stage_window);
|
||||||
#endif
|
#endif
|
||||||
ClutterBackend *backend;
|
ClutterBackend *backend;
|
||||||
ClutterBackendCogl *backend_cogl;
|
|
||||||
CoglFramebuffer *framebuffer;
|
CoglFramebuffer *framebuffer;
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
gfloat width = 800;
|
gfloat width = 800;
|
||||||
@ -113,23 +112,22 @@ clutter_stage_cogl_realize (ClutterStageWindow *stage_window)
|
|||||||
G_OBJECT_TYPE_NAME (stage_cogl),
|
G_OBJECT_TYPE_NAME (stage_cogl),
|
||||||
stage_cogl);
|
stage_cogl);
|
||||||
|
|
||||||
backend = clutter_get_default_backend ();
|
backend = clutter_get_default_backend ();
|
||||||
backend_cogl = CLUTTER_BACKEND_COGL (backend);
|
|
||||||
|
|
||||||
#ifdef COGL_HAS_XLIB_SUPPORT
|
#ifdef COGL_HAS_XLIB_SUPPORT
|
||||||
clutter_actor_get_size (CLUTTER_ACTOR (stage_x11->wrapper), &width, &height);
|
clutter_actor_get_size (CLUTTER_ACTOR (stage_x11->wrapper), &width, &height);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
stage_cogl->onscreen = cogl_onscreen_new (backend->cogl_context,
|
stage_cogl->onscreen = cogl_onscreen_new (backend->cogl_context,
|
||||||
width, height);
|
width, height);
|
||||||
|
|
||||||
#ifdef COGL_HAS_XLIB_SUPPORT
|
#ifdef COGL_HAS_XLIB_SUPPORT
|
||||||
if (stage_x11->xwin != None)
|
if (stage_x11->xwin != None)
|
||||||
{
|
{
|
||||||
cogl_onscreen_x11_set_foreign_window_xid (
|
cogl_onscreen_x11_set_foreign_window_xid (stage_cogl->onscreen,
|
||||||
stage_cogl->onscreen,
|
stage_x11->xwin,
|
||||||
stage_x11->xwin,
|
_clutter_stage_x11_update_foreign_event_mask,
|
||||||
_clutter_stage_x11_update_foreign_event_mask,
|
stage_x11);
|
||||||
stage_x11);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -147,6 +145,7 @@ clutter_stage_cogl_realize (ClutterStageWindow *stage_window)
|
|||||||
stage_cogl->onscreen = NULL;
|
stage_cogl->onscreen = NULL;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* FIXME: for fullscreen Cogl platforms then the size we gave above
|
/* FIXME: for fullscreen Cogl platforms then the size we gave above
|
||||||
* will be ignored, so we need to make sure the stage size is
|
* will be ignored, so we need to make sure the stage size is
|
||||||
* updated to this size. */
|
* updated to this size. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user