sw_engine: fix a regression bug

invalidate cached compositors when target size is changed.
compositors must be re-initialized with a new size.

regression bug by ca3c1fc1b9
This commit is contained in:
Hermet Park 2024-01-19 17:03:22 +09:00
parent fcb8f813ff
commit 10ad8bad36
4 changed files with 2 additions and 0 deletions

Binary file not shown.

View file

@ -425,6 +425,8 @@ bool SwRenderer::target(pixel_t* data, uint32_t stride, uint32_t w, uint32_t h,
{
if (!data || stride == 0 || w == 0 || h == 0 || w > stride) return false;
clearCompositors();
if (!surface) surface = new SwSurface;
surface->data = data;

Binary file not shown.

Binary file not shown.