From 71fb15661186570f00320ab84dcb20e88b5709ff Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 15 Apr 2020 21:59:09 -0400 Subject: gl_device: Mark stage_swizzle as constexpr Previously this was mutable even though it shouldn't be. --- src/video_core/renderer_opengl/gl_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/video_core') diff --git a/src/video_core/renderer_opengl/gl_device.cpp b/src/video_core/renderer_opengl/gl_device.cpp index c286502ba..d83dca25a 100644 --- a/src/video_core/renderer_opengl/gl_device.cpp +++ b/src/video_core/renderer_opengl/gl_device.cpp @@ -87,7 +87,7 @@ u32 Extract(u32& base, u32& num, u32 amount, std::optional limit = {}) { std::array BuildBaseBindings() noexcept { std::array bindings; - static std::array stage_swizzle = {0, 1, 2, 3, 4}; + static constexpr std::array stage_swizzle{0, 1, 2, 3, 4}; const u32 total_ubos = GetInteger(GL_MAX_UNIFORM_BUFFER_BINDINGS); const u32 total_ssbos = GetInteger(GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS); const u32 total_samplers = GetInteger(GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS); -- cgit v1.2.3