Skip to content
Snippets Groups Projects
Commit d87c9689 authored by Steve Lhomme's avatar Steve Lhomme Committed by Felix Paul Kühne
Browse files

direct3d11: fix cached quad not updating the region position

For DVDs the palette may have changed.
parent c59ee89f
No related branches found
No related tags found
1 merge request!6197direct3d11: fix cached quad not updating the region position
Pipeline #526241 failed with stages
in 14 minutes and 57 seconds
......@@ -1662,7 +1662,12 @@ static int Direct3D11MapSubpicture(vout_display_t *vd, int *subpicture_region_co
picture_t *quad_picture = (*region)[i];
d3d11_quad_t *quad;
if (quad_picture != NULL)
{
quad = static_cast<d3d11_quad_t*>(quad_picture->p_sys);
video_format_Clean(&quad->quad_fmt);
video_format_Copy(&quad->quad_fmt, &r->p_picture->format);
}
else
{
d3d11_quad_t *d3dquad = new (std::nothrow) d3d11_quad_t;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment