summaryrefslogtreecommitdiff
path: root/src/xvmc
diff options
context:
space:
mode:
authorZou Nan hai <nanhai.zou@intel.com>2008-12-17 13:55:07 +0800
committerZou Nan hai <nanhai.zou@intel.com>2008-12-17 13:55:07 +0800
commit555eea5411cf8c725df5f1b4cb80198fa6a1225b (patch)
treea8d93f99b6ef84c8901e6634197c1be6d87d0869 /src/xvmc
parented267072db7c58ee16a458fd3dc24ce3a2d0061d (diff)
wait vblank before render to fix tearing
Diffstat (limited to 'src/xvmc')
-rw-r--r--src/xvmc/intel_xvmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xvmc/intel_xvmc.c b/src/xvmc/intel_xvmc.c
index dbde22f9..c197e358 100644
--- a/src/xvmc/intel_xvmc.c
+++ b/src/xvmc/intel_xvmc.c
@@ -757,7 +757,7 @@ _X_EXPORT Status XvMCPutSurface(Display *display,XvMCSurface *surface,
}
intel_surf->last_draw = draw;
/* fill intel_surf->data */
- if (0)
+ if (1)
{
drmVBlank vbl;
vbl.request.type = DRM_VBLANK_RELATIVE;