mirror of
https://github.com/libretro/beetle-psx-libretro.git
synced 2024-11-30 12:20:42 +00:00
Merge pull request #680 from stoofin/fix-crash
Fix failed assert when asked to clear an empty rect
This commit is contained in:
commit
409ac1b174
@ -468,6 +468,10 @@ void TextureTracker::clearRegion(Rect rect) {
|
||||
if (blit_log != nullptr) {
|
||||
blit_log->clear(rect);
|
||||
}
|
||||
if (rect.width == 0 || rect.height == 0) {
|
||||
// Some games do this, apparently.
|
||||
return;
|
||||
}
|
||||
tracker.clear(toSRect(rect));
|
||||
fused_pages.mark_dead(rect);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user