egl-wayland: Make sure we allocate a back buffer even if nothing was rendered
authorKristian Høgsberg <krh@bitplanet.net>
Wed, 6 Feb 2013 20:41:54 +0000 (15:41 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 8 Feb 2013 16:23:18 +0000 (11:23 -0500)
commit1fe007399c1ed28b8cef9d4f040164480423f2c9
treee24a6107310c76e24190daf2e7fad0e412d894c6
parenta4b9678a5451465b7df8a7fd8acc1fa9c5300181
egl-wayland: Make sure we allocate a back buffer even if nothing was rendered

At eglSwapBuffer time, we blindly assume we have a back buffer, but the
back buffer only gets allocated when somebody tries to render something.

NOTE: This is a candidate for the 9.0 and 9.1 branches.

https://bugs.freedesktop.org/show_bug.cgi?id=60086
src/egl/drivers/dri2/platform_wayland.c