From: Feng, Haitao Date: Tue, 29 Mar 2011 05:41:35 +0000 (+0800) Subject: egl_dri2 x11: Fix a typo X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=58f95f9d01f1fe2c260ca87f1ee74d9710947c12;p=mesa.git egl_dri2 x11: Fix a typo Signed-off-by: Haitao Feng --- diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c index 30372caadcd..e7fe95da8e8 100644 --- a/src/egl/drivers/dri2/platform_x11.c +++ b/src/egl/drivers/dri2/platform_x11.c @@ -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) {