sw_engine: hotfix++

resolved a memory violation introduced by:
e2909dd6a4
This commit is contained in:
Hermet Park 2025-06-02 22:40:43 +09:00
parent dc59440744
commit eeebfbb654
2 changed files with 1 additions and 2 deletions

View file

@ -181,7 +181,6 @@ struct Array
return count == 0;
}
bool full()
{
return count == reserved;

View file

@ -902,7 +902,7 @@ bool rleClip(SwRle *rle, const SwRle *clip)
}
//try clipping with all clip spans which have a same y-coordinate.
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.
if ((spans->x + spans->len) < spans->x || (temp->x + temp->len) < temp->x) {
++temp;