mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-29 09:18:43 +00:00
Renamed SDL_SIMDGetAlignment() to SDL_GetSIMDAlignment()
This commit is contained in:
parent
4609af618a
commit
02ff85f2f3
19 changed files with 41 additions and 27 deletions
|
|
@ -151,7 +151,7 @@ static int ZombieAcquireFrame(SDL_CameraDevice *device, SDL_Surface *frame, Uint
|
|||
if (!device->zombie_pixels) {
|
||||
// attempt to allocate and initialize a fake frame of pixels.
|
||||
const size_t buflen = GetFrameBufLen(&device->actual_spec);
|
||||
device->zombie_pixels = (Uint8 *)SDL_aligned_alloc(SDL_SIMDGetAlignment(), buflen);
|
||||
device->zombie_pixels = (Uint8 *)SDL_aligned_alloc(SDL_GetSIMDAlignment(), buflen);
|
||||
if (!device->zombie_pixels) {
|
||||
*timestampNS = 0;
|
||||
return 0; // oh well, say there isn't a frame yet, so we'll go back to waiting. Maybe allocation will succeed later...?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue