+2007-10-09 Rob Bradford <rob@openedhand.com>
+
+ * clutter/eglnative/clutter-backend-egl.c:
+ (clutter_backend_egl_dispose):
+ Call eglTerminate() on the display when the backend is disposed of.
+
+ * clutter/eglnative/clutter-stage-egl.c:
+ (clutter_stage_egl_realize):
+ Don't use the createNativeWindow() call, it's not generic EGL.
+
2007-10-09 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-script-private.h:
backend_egl->stage = NULL;
}
+ if (backend_egl->edpy)
+ {
+ eglTerminate (backend_egl->edpy);
+ backend_egl->edpy = NULL;
+ }
+
G_OBJECT_CLASS (clutter_backend_egl_parent_class)->dispose (gobject);
}
G_DEFINE_TYPE (ClutterStageEGL, clutter_stage_egl, CLUTTER_TYPE_STAGE);
-/* NOTE: EGL implementation needs to provide this function */
-extern NativeWindowType createNativeWindow(void);
-
static void
clutter_stage_egl_show (ClutterActor *actor)
{
if (G_LIKELY (!is_offscreen))
{
- NativeWindowType window;
-
EGLint cfg_attribs[] = { EGL_BUFFER_SIZE, EGL_DONT_CARE,
EGL_RED_SIZE, 5,
EGL_GREEN_SIZE, 6,
if (stage_egl->egl_surface)
eglDestroySurface (clutter_egl_display(), stage_egl->egl_surface);
- /* EGL Implementation needs to provide createNativeWindow() */
- window = createNativeWindow();
-
stage_egl->egl_surface
= eglCreateWindowSurface (clutter_egl_display(),
configs[0],
- window,
+ NULL,
NULL);
eglQuerySurface (clutter_egl_display(),