summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorRodrigo Locatti <reinuseslisp@airmail.cc>2020-04-16 06:26:23 +0200
committerGitHub <noreply@github.com>2020-04-16 06:26:23 +0200
commit4209dba1f698838ecfde0306f23c8e043cd4cb80 (patch)
treee574e99c367042d1ebbef6f44a5931115acba30a /src/video_core
parentMerge pull request #3687 from lioncash/constness (diff)
parentgl_device: Mark stage_swizzle as constexpr (diff)
downloadyuzu-4209dba1f698838ecfde0306f23c8e043cd4cb80.tar
yuzu-4209dba1f698838ecfde0306f23c8e043cd4cb80.tar.gz
yuzu-4209dba1f698838ecfde0306f23c8e043cd4cb80.tar.bz2
yuzu-4209dba1f698838ecfde0306f23c8e043cd4cb80.tar.lz
yuzu-4209dba1f698838ecfde0306f23c8e043cd4cb80.tar.xz
yuzu-4209dba1f698838ecfde0306f23c8e043cd4cb80.tar.zst
yuzu-4209dba1f698838ecfde0306f23c8e043cd4cb80.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_opengl/gl_device.cpp2
1 files changed, 1 insertions, 1 deletions
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<GLenum> limit = {}) {
std::array<Device::BaseBindings, Tegra::Engines::MaxShaderTypes> BuildBaseBindings() noexcept {
std::array<Device::BaseBindings, Tegra::Engines::MaxShaderTypes> bindings;
- static std::array<std::size_t, 5> stage_swizzle = {0, 1, 2, 3, 4};
+ static constexpr std::array<std::size_t, 5> stage_swizzle{0, 1, 2, 3, 4};
const u32 total_ubos = GetInteger<u32>(GL_MAX_UNIFORM_BUFFER_BINDINGS);
const u32 total_ssbos = GetInteger<u32>(GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS);
const u32 total_samplers = GetInteger<u32>(GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS);