From d1e916d29be8b470cbc8cadcf6e83991fdbc5a9f Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Thu, 16 Apr 2009 12:10:34 -0700 Subject: [PATCH] DRI2: Add missing front-buffer flush callback. Signed-off-by: Ian Romanick --- glx/glxdri2.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/glx/glxdri2.c b/glx/glxdri2.c index 9e452c4fd..612defb3f 100644 --- a/glx/glxdri2.c +++ b/glx/glxdri2.c @@ -443,9 +443,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[] = {