aboutsummaryrefslogtreecommitdiffstats
path: root/al/state.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-10-25 01:43:23 -0700
committerChris Robinson <[email protected]>2019-10-25 01:43:23 -0700
commit0cba99ed1bc2712c15c17f0940127e6f84395729 (patch)
treec5898dc9022da86450204f71579723c41d54bc92 /al/state.cpp
parent5ac1f192419a5d1d435a0f8703560823075799af (diff)
Avoid static constexpr for arrays iterated over at run-time
Diffstat (limited to 'al/state.cpp')
-rw-r--r--al/state.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/al/state.cpp b/al/state.cpp
index 3ce09be9..25a0efd1 100644
--- a/al/state.cpp
+++ b/al/state.cpp
@@ -742,7 +742,7 @@ START_API_FUNC
ALbitfieldSOFT enabledevts{context->mEnabledEvts.load(std::memory_order_relaxed)};
if((enabledevts&EventType_Deprecated) && context->mEventCb)
{
- static constexpr ALCchar msg[] =
+ static const char msg[] =
"alDopplerVelocity is deprecated in AL1.1, use alSpeedOfSound";
const ALsizei msglen{sizeof(msg)-1};
(*context->mEventCb)(AL_EVENT_TYPE_DEPRECATED_SOFT, 0, 0, msglen, msg,