mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-02-12 00:50:05 +00:00
![SquidDev](/assets/img/avatar_default.png)
When calling .flip(), we limit the size of the buffer. However, this limit is not reset when writing the next time, which means we get out-of-bounds errors, even if the buffer is /technically/ big enough. Clearing the buffer before drawing (rather than just resetting the position) is enough to fix this. Fixes #476 (and closes #477, which is a duplicate)