egl_dri2: set ctx->WindowRenderBuffer
authorChia-I Wu <olv@lunarg.com>
Fri, 26 Aug 2011 17:42:16 +0000 (01:42 +0800)
committerChia-I Wu <olv@lunarg.com>
Wed, 31 Aug 2011 03:51:42 +0000 (11:51 +0800)
commit357d3f30f36878a3010547b669f055a2043cbbaa
tree2fe5004f9dfbdb780d2b01c79bdc4f86d3ac7300
parent66e8d223b61dc034fb941e7d704a85ee44d7bbcc
egl_dri2: set ctx->WindowRenderBuffer

Set ctx->WindowRenderBuffer to EGL_BACK_BUFFER.  As EGL_WINDOW_BIT of a
config is set only when there is dri_double_buffer, that makes sure
window surfaces are always double-buffered and contexts will render to
the back buffer.

Reviewed-by: Chad Versace <chad@chad-versace.us>
src/egl/drivers/dri2/egl_dri2.c