summaryrefslogtreecommitdiffstats
path: root/src/egl/drivers/dri2
diff options
context:
space:
mode:
authorFeng, Haitao <[email protected]>2011-03-29 13:41:35 +0800
committerKristian Høgsberg <[email protected]>2011-03-30 08:29:09 -0400
commit58f95f9d01f1fe2c260ca87f1ee74d9710947c12 (patch)
tree588845bee170066a8b35acc8a0ab0a91ba3b05e7 /src/egl/drivers/dri2
parent5eb9f687087a4bc71775a32efcd848fc6cd67694 (diff)
egl_dri2 x11: Fix a typo
Signed-off-by: Haitao Feng <[email protected]>
Diffstat (limited to 'src/egl/drivers/dri2')
-rw-r--r--src/egl/drivers/dri2/platform_x11.c2
1 files changed, 1 insertions, 1 deletions
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) {