mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-24 17:51:10 +01:00
When the upload needs realignment, a new buffer is created to do the upload, and the source data is copied to the new buffer. This commit fixes the issue where the memcopy can read off the end of the source buffer since it is reading based on destination pitch instead of source pitch.