egl_dri2: Only clear EGL_PIXMAP_BIT if DRI config is double buffered
authorKristian Høgsberg <krh@bitplanet.net>
Wed, 31 Aug 2011 22:20:06 +0000 (18:20 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 31 Aug 2011 22:33:36 +0000 (18:33 -0400)
commit447bb454d848d98134ff916ab8a3b316fb136c59
treeb36ae3ffc91dada10ac044aec37e5a200c12e8cc
parentc661ecce1089000c3fca9a543713f8264221be50
egl_dri2: Only clear EGL_PIXMAP_BIT if DRI config is double buffered

We don't want to set the pixmap bit in the EGL config if the DRI
config we're adding is a double buffered config.  However, don't clear
any other bits the platform might pass in in the surface_type
argument.
src/egl/drivers/dri2/egl_dri2.c