Commit e66bcd9e authored by Ryan C. Gordon's avatar Ryan C. Gordon

SDL_memcpyMMX(): Make sure srcskip and dstskip are 8-byte aligned.

Thanks to Patrick Baggett for the fix!
parent c6f4eaaf
...@@ -127,7 +127,7 @@ SDL_BlitCopy(SDL_BlitInfo * info) ...@@ -127,7 +127,7 @@ SDL_BlitCopy(SDL_BlitInfo * info)
#endif #endif
#ifdef __MMX__ #ifdef __MMX__
if (SDL_HasMMX()) { if (SDL_HasMMX() && !(srcskip & 7) && !(dstskip & 7)) {
while (h--) { while (h--) {
SDL_memcpyMMX(dst, src, w); SDL_memcpyMMX(dst, src, w);
src += srcskip; src += srcskip;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment