mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-07 21:23:32 +00:00
sw_engine: hotfix++
resolved a memory violation introduced by:
e2909dd6a4
This commit is contained in:
parent
dc59440744
commit
eeebfbb654
2 changed files with 1 additions and 2 deletions
|
@ -181,7 +181,6 @@ struct Array
|
||||||
return count == 0;
|
return count == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool full()
|
bool full()
|
||||||
{
|
{
|
||||||
return count == reserved;
|
return count == reserved;
|
||||||
|
|
|
@ -902,7 +902,7 @@ bool rleClip(SwRle *rle, const SwRle *clip)
|
||||||
}
|
}
|
||||||
//try clipping with all clip spans which have a same y-coordinate.
|
//try clipping with all clip spans which have a same y-coordinate.
|
||||||
auto temp = cspans;
|
auto temp = cspans;
|
||||||
while(temp->y == cspans->y && temp < cend) {
|
while(temp < cend && temp->y == cspans->y) {
|
||||||
//span must be left(x1) to right(x2) direction. Not intersected.
|
//span must be left(x1) to right(x2) direction. Not intersected.
|
||||||
if ((spans->x + spans->len) < spans->x || (temp->x + temp->len) < temp->x) {
|
if ((spans->x + spans->len) < spans->x || (temp->x + temp->len) < temp->x) {
|
||||||
++temp;
|
++temp;
|
||||||
|
|
Loading…
Add table
Reference in a new issue