summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwenole Beauchesne <gbeauchesne@splitted-desktop.com>2010-08-09 09:38:48 +0000
committerGwenole Beauchesne <gbeauchesne@splitted-desktop.com>2010-08-09 09:38:48 +0000
commitef26cbebe7e29cce69eae46b189d83a977232995 (patch)
tree3d3b52930634e0f8473731a3596e0e88a7751d94
parentb1aa9e2391b0ee6b43368ec57c05d8c00d285f87 (diff)
Fix rendering bounds.
-rw-r--r--src/vdpau_video_glx.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/vdpau_video_glx.c b/src/vdpau_video_glx.c
index c648d06..630bce9 100644
--- a/src/vdpau_video_glx.c
+++ b/src/vdpau_video_glx.c
@@ -329,10 +329,6 @@ associate_glx_surface(
src_rect.y = 0;
src_rect.width = obj_surface->width;
src_rect.height = obj_surface->height;
- dst_rect.x = 0;
- dst_rect.y = 0;
- dst_rect.width = obj_glx_surface->width;
- dst_rect.height = obj_glx_surface->height;
/* Render to VDPAU output surface */
if (vdpau_gl_interop()) {
@@ -375,6 +371,11 @@ associate_glx_surface(
return vdpau_get_VAStatus(driver_data, vdp_status);
}
+ dst_rect.x = 0;
+ dst_rect.y = 0;
+ dst_rect.width = obj_surface->width;
+ dst_rect.height = obj_surface->height;
+
va_status = render_surface(
driver_data,
obj_surface,
@@ -389,6 +390,11 @@ associate_glx_surface(
/* Render to Pixmap */
else {
+ dst_rect.x = 0;
+ dst_rect.y = 0;
+ dst_rect.width = obj_glx_surface->width;
+ dst_rect.height = obj_glx_surface->height;
+
va_status = put_surface(
driver_data,
obj_surface->base.id,