From cadf0d1de5ca5a845b0e6fdb3aaaff7c8c741f9e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 23 Feb 2022 01:29:28 -0800 Subject: Make some local constexpr variables static --- 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 8a5bee25..3d9caf54 100644 --- a/al/buffer.cpp +++ b/al/buffer.cpp @@ -761,7 +761,7 @@ void PrepareCallback(ALCcontext *context, ALbuffer *ALBuf, ALsizei freq, const ALuint ambiorder{IsBFormat(*DstChannels) ? ALBuf->UnpackAmbiOrder : (IsUHJ(*DstChannels) ? 1 : 0)}; - constexpr uint line_size{BufferLineSize + MaxPostVoiceLoad}; + static constexpr uint line_size{BufferLineSize + MaxPostVoiceLoad}; al::vector(FrameSizeFromFmt(*DstChannels, *DstType, ambiorder) * size_t{line_size}).swap(ALBuf->mData); -- cgit v1.2.3