egl/x11: Set version of swrastLoader to 2
authorBoyan Ding <boyan.j.ding@gmail.com>
Tue, 16 Jun 2015 03:08:33 +0000 (11:08 +0800)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 18 Jun 2015 11:57:59 +0000 (12:57 +0100)
which it actually implements instead of the newest version defined in
dri_interface.h

Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Boyan Ding <boyan.j.ding@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
src/egl/drivers/dri2/platform_x11.c

index e0d0fdc8205dde9e2b304e7bdeffa2dc0acf6288..2d5b71746e884c1cb06c317f3bce61324b571853 100644 (file)
@@ -1112,7 +1112,7 @@ dri2_initialize_x11_swrast(_EGLDriver *drv, _EGLDisplay *disp)
       goto cleanup_conn;
 
    dri2_dpy->swrast_loader_extension.base.name = __DRI_SWRAST_LOADER;
-   dri2_dpy->swrast_loader_extension.base.version = __DRI_SWRAST_LOADER_VERSION;
+   dri2_dpy->swrast_loader_extension.base.version = 2;
    dri2_dpy->swrast_loader_extension.getDrawableInfo = swrastGetDrawableInfo;
    dri2_dpy->swrast_loader_extension.putImage = swrastPutImage;
    dri2_dpy->swrast_loader_extension.getImage = swrastGetImage;