| author | Ian Romanick <ian.d.romanick@intel.com> | 2009-04-16 19:10:34 (GMT) |
|---|---|---|
| committer | Ian Romanick <ian.d.romanick@intel.com> | 2009-04-21 03:58:56 (GMT) |
| commit | d1e916d29be8b470cbc8cadcf6e83991fdbc5a9f (patch) (side-by-side diff) | |
| tree | c94e8ad06ff1d69ddb691ee26cd737f0fd53f41a | |
| parent | 826a5bff0136b2b4d55a9e6e6bc3a7a64da9031e (diff) | |
| download | xserver-d1e916d29be8b470cbc8cadcf6e83991fdbc5a9f.zip xserver-d1e916d29be8b470cbc8cadcf6e83991fdbc5a9f.tar.gz | |
DRI2: Add missing front-buffer flush callback.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
| -rw-r--r-- | glx/glxdri2.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/glx/glxdri2.c b/glx/glxdri2.c index 9e452c4..612defb 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[] = { |
