diff --git a/glx/glxdri2.c b/glx/glxdri2.c index 0daf9aa75..84d2c03d1 100644 --- a/glx/glxdri2.c +++ b/glx/glxdri2.c @@ -396,9 +396,17 @@ dri2GetBuffers(__DRIdrawable *driDrawable, return private->buffers; } +static void +dri2FlushFrontBuffer(__DRIdrawable *driDrawable, void *loaderPrivate) +{ + (void) driDrawable; + __glXDRIdrawableWaitGL((__GLXdrawable *) loaderPrivate); +} + static const __DRIdri2LoaderExtension loaderExtension = { { __DRI_DRI2_LOADER, __DRI_DRI2_LOADER_VERSION }, dri2GetBuffers, + dri2FlushFrontBuffer, }; static const __DRIextension *loader_extensions[] = {