mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 21:53:41 +00:00
sw_engine: assign the stride omitted
This fixes a wrong compositor access during the rasterization issue: https://github.com/orgs/thorvg/discussions/3109
This commit is contained in:
parent
bc1ad7104d
commit
a31eceeafa
1 changed files with 1 additions and 1 deletions
|
@ -579,7 +579,7 @@ SwSurface* SwRenderer::request(int channelSize, bool square)
|
|||
cmp->compositor->image.data = (pixel_t*)malloc(channelSize * w * h);
|
||||
cmp->w = cmp->compositor->image.w = w;
|
||||
cmp->h = cmp->compositor->image.h = h;
|
||||
cmp->compositor->image.stride = w;
|
||||
cmp->stride = cmp->compositor->image.stride = w;
|
||||
cmp->compositor->image.direct = true;
|
||||
cmp->compositor->valid = true;
|
||||
cmp->channelSize = cmp->compositor->image.channelSize = channelSize;
|
||||
|
|
Loading…
Add table
Reference in a new issue