Make sure all page-flips are acknowledged.

This commit is contained in:
Themaister 2012-09-23 12:11:24 +02:00
parent 9297f028a4
commit b1f5c83deb

View File

@ -512,6 +512,10 @@ error:
void gfx_ctx_destroy(void)
{
// Make sure we acknowledge all page-flips.
if (waiting_for_flip)
wait_flip(true);
if (g_egl_dpy)
{
if (g_egl_ctx)