Skip to content

Commit

Permalink
Rename surface aligned memory flag to SDL_SIMD_ALIGNED
Browse files Browse the repository at this point in the history
  • Loading branch information
1bsyl committed Feb 4, 2019
1 parent 65e07b3 commit 9a98dcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/SDL_surface.h
Expand Up @@ -53,7 +53,7 @@ extern "C" {
#define SDL_PREALLOC 0x00000001 /**< Surface uses preallocated memory */
#define SDL_RLEACCEL 0x00000002 /**< Surface is RLE encoded */
#define SDL_DONTFREE 0x00000004 /**< Surface is referenced internally */
#define SDL_MEMALIGNED 0x00000008 /**< Surface uses aligned memory */
#define SDL_SIMD_ALIGNED 0x00000008 /**< Surface uses aligned memory */
/* @} *//* Surface flags */

/**
Expand Down
2 changes: 1 addition & 1 deletion src/video/SDL_surface.c
Expand Up @@ -1261,7 +1261,7 @@ SDL_FreeSurface(SDL_Surface * surface)
}
if (surface->flags & SDL_PREALLOC) {
/* Don't free */
} else if (surface->flags & SDL_MEMALIGNED) {
} else if (surface->flags & SDL_SIMD_ALIGNED) {
/* Free aligned */
SDL_SIMDFree(surface->pixels);
} else {
Expand Down

0 comments on commit 9a98dcc

Please sign in to comment.