summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwenole Beauchesne <gbeauchesne@splitted-desktop.com>2010-06-02 09:04:33 +0200
committerAustin Yuan <shengquan.yuan@gmail.com>2010-06-02 17:23:05 +0800
commita7ec84e3d6d3279412ddddef7774d94b0a07e153 (patch)
tree1c614463041ad2ec6eb2566f9e02597032d68791
parent9ce47af9a2df4ecbe562c1a92bf1fe8889928be8 (diff)
downloadlibva-a7ec84e3d6d3279412ddddef7774d94b0a07e153.tar.gz
Call va_TraceEndPicture() after the actual vaEndPicture(). i.e. let the driver flush and complete rendering of the surface.
-rw-r--r--va/va.c4
1 files changed, 3 insertions, 1 deletions
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 (