2008-05-13 Emmanuele Bassi <ebassi@openedhand.com>
+ * clutter/glx/clutter-stage-glx.c:
+ (clutter_stage_glx_unrealize): Move the shaders release from here...
+
+ * clutter/glx/clutter-backend-glx.c:
+ (clutter_backend_glx_dispose): ... to here. Shaders should be
+ released when the GL context is being destroyed, and that only
+ happens when the backend is being disposed, now that we support
+ multiple stages.
+
+2008-05-13 Emmanuele Bassi <ebassi@openedhand.com>
+
* clutter/clutter-backend.c:
(_clutter_backend_create_stage): Call _clutter_stage_set_window()
ourselves, thus removing yet another action that backends must
ClutterBackendGLX *backend_glx = CLUTTER_BACKEND_GLX (gobject);
ClutterBackendX11 *backend_x11 = CLUTTER_BACKEND_X11 (gobject);
+ /* Unrealize all shaders, since the GL context is going away */
+ _clutter_shader_release_all ();
+
if (backend_glx->gl_context)
{
glXDestroyContext (backend_x11->xdpy, backend_glx->gl_context);
clutter_x11_trap_x_errors ();
- /* Unrealize all shaders, since the GL context is going away */
- _clutter_shader_release_all ();
-
if (G_UNLIKELY (was_offscreen))
{
if (stage_glx->glxpixmap)