src/video/SDL_surface.c
changeset 12591 66cd8731c3b1
parent 12590 b50bedb4bca0
     1.1 --- a/src/video/SDL_surface.c	Mon Feb 04 08:43:37 2019 +0100
     1.2 +++ b/src/video/SDL_surface.c	Mon Feb 04 09:11:07 2019 +0100
     1.3 @@ -120,12 +120,13 @@
     1.4              return NULL;
     1.5          }
     1.6  
     1.7 -        surface->pixels = SDL_malloc((size_t)size);
     1.8 +        surface->pixels = SDL_SIMDAlloc((size_t)size);
     1.9          if (!surface->pixels) {
    1.10              SDL_FreeSurface(surface);
    1.11              SDL_OutOfMemory();
    1.12              return NULL;
    1.13          }
    1.14 +        surface->flags |= SDL_SIMD_ALIGNED;
    1.15          /* This is important for bitmaps */
    1.16          SDL_memset(surface->pixels, 0, surface->h * surface->pitch);
    1.17      }