wayland: Pass use_invalidate extension to driver
authorKristian Høgsberg <krh@bitplanet.net>
Mon, 20 Jun 2011 15:05:26 +0000 (11:05 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 20 Jun 2011 15:05:26 +0000 (11:05 -0400)
src/egl/drivers/dri2/egl_dri2.h
src/egl/drivers/dri2/platform_wayland.c

index dd9eb94cf7a93eff6c50ad5c3b1857d6f89acf70..1d300c204566c6d6dc6435d01070ae4c9b73e23c 100644 (file)
@@ -84,7 +84,7 @@ struct dri2_egl_display
 
    __DRIdri2LoaderExtension    dri2_loader_extension;
    __DRIswrastLoaderExtension  swrast_loader_extension;
-   const __DRIextension     *extensions[3];
+   const __DRIextension     *extensions[4];
 
 #ifdef HAVE_X11_PLATFORM
    xcb_connection_t         *conn;
index e786780d3fb962d9a40efa0adce6ae7dc5dd6c04..9ea9c7c0bd552b59726da015d2d82bb8f5e613f5 100644 (file)
@@ -720,7 +720,8 @@ dri2_initialize_wayland(_EGLDriver *drv, _EGLDisplay *disp)
       
    dri2_dpy->extensions[0] = &dri2_dpy->dri2_loader_extension.base;
    dri2_dpy->extensions[1] = &image_lookup_extension.base;
-   dri2_dpy->extensions[2] = NULL;
+   dri2_dpy->extensions[2] = &use_invalidate.base;
+   dri2_dpy->extensions[3] = NULL;
 
    if (!dri2_create_screen(disp))
       goto cleanup_driver;