From a7ec84e3d6d3279412ddddef7774d94b0a07e153 Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Wed, 2 Jun 2010 09:04:33 +0200 Subject: [PATCH] Call va_TraceEndPicture() after the actual vaEndPicture(). i.e. let the driver flush and complete rendering of the surface. --- va/va.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/va/va.c b/va/va.c index 1632e55..fb843e8 100644 --- a/va/va.c +++ b/va/va.c @@ -712,12 +712,14 @@ VAStatus vaEndPicture ( VAContextID context ) { + VAStatus va_status; VADriverContextP ctx; CHECK_DISPLAY(dpy); ctx = CTX(dpy); + va_status = ctx->vtable.vaEndPicture( ctx, context ); VA_TRACE(va_TraceEndPicture, dpy, context); - return ctx->vtable.vaEndPicture( ctx, context ); + return va_status; } VAStatus vaSyncSurface ( -- 2.7.4