mirror of https://github.com/encounter/SDL.git
Rename surface aligned memory flag to SDL_SIMD_ALIGNED
This commit is contained in:
parent
65e07b3884
commit
9a98dcc516
|
@ -53,7 +53,7 @@ extern "C" {
|
||||||
#define SDL_PREALLOC 0x00000001 /**< Surface uses preallocated memory */
|
#define SDL_PREALLOC 0x00000001 /**< Surface uses preallocated memory */
|
||||||
#define SDL_RLEACCEL 0x00000002 /**< Surface is RLE encoded */
|
#define SDL_RLEACCEL 0x00000002 /**< Surface is RLE encoded */
|
||||||
#define SDL_DONTFREE 0x00000004 /**< Surface is referenced internally */
|
#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 */
|
/* @} *//* Surface flags */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1261,7 +1261,7 @@ SDL_FreeSurface(SDL_Surface * surface)
|
||||||
}
|
}
|
||||||
if (surface->flags & SDL_PREALLOC) {
|
if (surface->flags & SDL_PREALLOC) {
|
||||||
/* Don't free */
|
/* Don't free */
|
||||||
} else if (surface->flags & SDL_MEMALIGNED) {
|
} else if (surface->flags & SDL_SIMD_ALIGNED) {
|
||||||
/* Free aligned */
|
/* Free aligned */
|
||||||
SDL_SIMDFree(surface->pixels);
|
SDL_SIMDFree(surface->pixels);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue