From 0cba99ed1bc2712c15c17f0940127e6f84395729 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 25 Oct 2019 01:43:23 -0700 Subject: Avoid static constexpr for arrays iterated over at run-time --- al/buffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'al/buffer.cpp') diff --git a/al/buffer.cpp b/al/buffer.cpp index c9e195d1..8f4228a8 100644 --- a/al/buffer.cpp +++ b/al/buffer.cpp @@ -557,7 +557,7 @@ al::optional DecomposeUserFormat(ALenum format) UserFmtChannels channels; UserFmtType type; }; - static constexpr std::array UserFmtList{{ + static const std::array UserFmtList{{ { AL_FORMAT_MONO8, UserFmtMono, UserFmtUByte }, { AL_FORMAT_MONO16, UserFmtMono, UserFmtShort }, { AL_FORMAT_MONO_FLOAT32, UserFmtMono, UserFmtFloat }, -- cgit v1.2.3