mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-27 11:11:07 +01:00
It turns out the reason this function was having so many overread issues was because our row copies were wrong - for compressed images we also need to reduce the row count based on the block size, similar to what we already do for pitch calculation - these copies are byte copies, not pixel copies!
(cherry picked from commit f472f93db8)