egl_dri2 x11: Fix a typo
authorFeng, Haitao <haitao.feng@intel.com>
Tue, 29 Mar 2011 05:41:35 +0000 (13:41 +0800)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 30 Mar 2011 12:29:09 +0000 (08:29 -0400)
Signed-off-by: Haitao Feng <haitao.feng@intel.com>
src/egl/drivers/dri2/platform_x11.c

index 30372caadcdfc8b9523737366ee98183bfbfc12c..e7fe95da8e864cbcc7751505a422144f8c005883 100644 (file)
@@ -231,7 +231,7 @@ dri2_create_surface(_EGLDriver *drv, _EGLDisplay *disp, EGLint type,
    if (dri2_dpy->dri2) {
       xcb_dri2_create_drawable (dri2_dpy->conn, dri2_surf->drawable);
    } else {
-      swrastCreateDrawable(dri2_dpy, dri2_surf, _eglGetConfigKey(conf, EGL_DEPTH_SIZE));
+      swrastCreateDrawable(dri2_dpy, dri2_surf, _eglGetConfigKey(conf, EGL_BUFFER_SIZE));
    }
 
    if (type != EGL_PBUFFER_BIT) {