mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
st/vdpau: use dst surface size if clip width/height is zero
Just another fix for gstreamer. Signed-off-by: Christian König <deathsimple@vodafone.de>
This commit is contained in:
parent
97349dfa79
commit
814be043fa
1 changed files with 2 additions and 2 deletions
|
|
@ -236,8 +236,8 @@ vlVdpPresentationQueueDisplay(VdpPresentationQueue presentation_queue,
|
|||
|
||||
dst_clip.x = 0;
|
||||
dst_clip.y = 0;
|
||||
dst_clip.w = clip_width;
|
||||
dst_clip.h = clip_height;
|
||||
dst_clip.w = clip_width ? clip_width : drawable_surface->width;
|
||||
dst_clip.h = clip_height ? clip_height : drawable_surface->height;
|
||||
|
||||
vl_compositor_clear_layers(&pq->compositor);
|
||||
vl_compositor_set_rgba_layer(&pq->compositor, 0, surf->sampler_view, &src_rect, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue