Skip to content

Commit

Permalink
direct3d11: fix cached quad not updating the region position
Browse files Browse the repository at this point in the history
For DVDs the palette may have changed.
  • Loading branch information
robUx4 authored and fkuehne committed Oct 22, 2024
1 parent c59ee89 commit d87c968
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/video_output/win32/direct3d11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d87c968

Please sign in to comment.