src/video/SDL_surface.c
changeset 12589 85bc5436a005
parent 12587 b2d4dcb4ba33
child 12590 b50bedb4bca0
equal deleted inserted replaced
12588:1fc2169984ad 12589:85bc5436a005
  1259         SDL_FreeFormat(surface->format);
  1259         SDL_FreeFormat(surface->format);
  1260         surface->format = NULL;
  1260         surface->format = NULL;
  1261     }
  1261     }
  1262     if (surface->flags & SDL_PREALLOC) {
  1262     if (surface->flags & SDL_PREALLOC) {
  1263         /* Don't free */
  1263         /* Don't free */
  1264     } else if (surface->flags & SDL_MEMALIGNED) {
  1264     } else if (surface->flags & SDL_SIMD_ALIGNED) {
  1265         /* Free aligned */
  1265         /* Free aligned */
  1266         SDL_SIMDFree(surface->pixels);
  1266         SDL_SIMDFree(surface->pixels);
  1267     } else {
  1267     } else {
  1268         /* Normal */
  1268         /* Normal */
  1269         SDL_free(surface->pixels);
  1269         SDL_free(surface->pixels);