2008-04-10 Emmanuele Bassi <ebassi@openedhand.com>

* clutter/eglx/clutter-backend-egl.c:
	(clutter_backend_egl_ensure_context): Sync up with the GLX
	backend.

	(clutter_backend_egl_create_stage): Dumb compilation fix.

	* clutter/glx/clutter-backend-glx.c:
	(clutter_backend_glx_create_stage): Unref the stage if we are
	erroring out.
This commit is contained in:
Emmanuele Bassi 2008-04-10 19:58:47 +00:00
parent c97bcb37ba
commit 0535283b77
3 changed files with 17 additions and 1 deletions

View File

@ -1,3 +1,15 @@
2008-04-10 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/eglx/clutter-backend-egl.c:
(clutter_backend_egl_ensure_context): Sync up with the GLX
backend.
(clutter_backend_egl_create_stage): Dumb compilation fix.
* clutter/glx/clutter-backend-glx.c:
(clutter_backend_glx_create_stage): Unref the stage if we are
erroring out.
2008-04-10 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/eglx/clutter-stage-egl.c:

View File

@ -77,7 +77,8 @@ clutter_backend_egl_ensure_context (ClutterBackend *backend,
stage_egl = CLUTTER_STAGE_EGL (impl);
stage_x11 = CLUTTER_STAGE_X11 (impl);
g_return_if_fail (backend_egl->egl_context != NULL);
if (!backend_egl->egl_context)
return;
/* we might get here inside the final dispose cycle, so we
* need to handle this gracefully
@ -220,6 +221,8 @@ clutter_backend_egl_create_stage (ClutterBackend *backend,
GError **error)
{
ClutterBackendX11 *backend_x11 = CLUTTER_BACKEND_X11 (backend);
ClutterStageX11 *stage_x11;
ClutterActor *stage;
CLUTTER_NOTE (BACKEND, "Creating stage of type `%s'",
g_type_name (CLUTTER_STAGE_TYPE));

View File

@ -503,6 +503,7 @@ clutter_backend_glx_create_stage (ClutterBackend *backend,
g_set_error (error, CLUTTER_INIT_ERROR,
CLUTTER_INIT_ERROR_INTERNAL,
"Unable to realize the main stage");
g_object_unref (stage);
return NULL;
}