--- Mesa-9.1/src/mesa/drivers/dri/nouveau/nouveau_driver.c.orig 2013-03-05 22:45:04.381790793 +0000 +++ Mesa-9.1/src/mesa/drivers/dri/nouveau/nouveau_driver.c 2013-03-05 22:47:45.307338871 +0000 @@ -69,7 +69,9 @@ __DRIdri2LoaderExtension *dri2 = screen->dri2.loader; __DRIdrawable *drawable = nctx->dri_context->driDrawablePriv; - dri2->flushFrontBuffer(drawable, drawable->loaderPrivate); + if (drawable && drawable->loaderPrivate) { + dri2->flushFrontBuffer(drawable, drawable->loaderPrivate); + } } }