From d9fed51aa6391debc31dbbca550f055c980afe70 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 12 Apr 2023 23:39:57 -0700 Subject: Make sure extension functions are properly aligned on 32-bit --- al/buffer.cpp | 4 ++-- al/source.cpp | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'al') diff --git a/al/buffer.cpp b/al/buffer.cpp index ee506596..93484e7d 100644 --- a/al/buffer.cpp +++ b/al/buffer.cpp @@ -773,8 +773,8 @@ START_API_FUNC } END_API_FUNC -void AL_APIENTRY alBufferDataStatic(const ALuint buffer, ALenum format, ALvoid *data, ALsizei size, - ALsizei freq) +FORCE_ALIGN void AL_APIENTRY alBufferDataStatic(const ALuint buffer, ALenum format, ALvoid *data, + ALsizei size, ALsizei freq) START_API_FUNC { ContextRef context{GetContextRef()}; diff --git a/al/source.cpp b/al/source.cpp index cba33862..bdc7e878 100644 --- a/al/source.cpp +++ b/al/source.cpp @@ -3492,7 +3492,7 @@ START_API_FUNC } END_API_FUNC -void AL_APIENTRY alSourcePlayAtTimeSOFT(ALuint source, ALint64SOFT start_time) +FORCE_ALIGN void AL_APIENTRY alSourcePlayAtTimeSOFT(ALuint source, ALint64SOFT start_time) START_API_FUNC { ContextRef context{GetContextRef()}; @@ -3544,7 +3544,8 @@ START_API_FUNC } END_API_FUNC -void AL_APIENTRY alSourcePlayAtTimevSOFT(ALsizei n, const ALuint *sources, ALint64SOFT start_time) +FORCE_ALIGN void AL_APIENTRY alSourcePlayAtTimevSOFT(ALsizei n, const ALuint *sources, + ALint64SOFT start_time) START_API_FUNC { ContextRef context{GetContextRef()}; -- cgit v1.2.3