diff options
author | Lioncash <mathew1800@gmail.com> | 2020-04-16 03:59:09 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-04-16 03:59:13 +0200 |
commit | 71fb15661186570f00320ab84dcb20e88b5709ff (patch) | |
tree | 8dd802bf13529570e74579860560c048286027a1 /src/video_core | |
parent | Merge pull request #3612 from ReinUsesLisp/red (diff) | |
download | yuzu-71fb15661186570f00320ab84dcb20e88b5709ff.tar yuzu-71fb15661186570f00320ab84dcb20e88b5709ff.tar.gz yuzu-71fb15661186570f00320ab84dcb20e88b5709ff.tar.bz2 yuzu-71fb15661186570f00320ab84dcb20e88b5709ff.tar.lz yuzu-71fb15661186570f00320ab84dcb20e88b5709ff.tar.xz yuzu-71fb15661186570f00320ab84dcb20e88b5709ff.tar.zst yuzu-71fb15661186570f00320ab84dcb20e88b5709ff.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/renderer_opengl/gl_device.cpp | 2 |
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); |