egl: Don't use obsolete API

Fixes a GCC "implicit declaration of function" warning when compiling.
This commit is contained in:
nobled 2011-01-04 13:59:48 +00:00 committed by Damien Lespiau
parent 8c23766da8
commit 530bc2aa70

View File

@ -56,7 +56,7 @@ clutter_stage_egl_unrealize (ClutterStageWindow *stage_window)
if (stage_egl->egl_surface != EGL_NO_SURFACE)
{
eglDestroySurface (clutter_eglx_display (), stage_egl->egl_surface);
eglDestroySurface (clutter_egl_get_egl_display (), stage_egl->egl_surface);
stage_egl->egl_surface = EGL_NO_SURFACE;
}
@ -81,7 +81,7 @@ clutter_stage_egl_realize (ClutterStageWindow *stage_window)
backend_egl = CLUTTER_BACKEND_EGL (backend);
backend_x11 = CLUTTER_BACKEND_X11 (backend);
edpy = clutter_eglx_display ();
edpy = clutter_egl_get_egl_display ();
if (stage_x11->xwin == None)
{