diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-04-19 22:36:48 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-04-19 22:36:52 -0400 |
| commit | d9e316e3538c0c0891f04bbfd0e211749ba15b5d (patch) | |
| tree | c218d1705222ae899c613427b01e1947a1c22893 /src/video_core/renderer_opengl/gl_state.cpp | |
| parent | 17ad56c1dce85e71d5ab8a87efd7d43d87cacd92 (diff) | |
common_funcs: Remove ARRAY_SIZE macro
C++17 has non-member size() which we can just call where necessary.
Diffstat (limited to 'src/video_core/renderer_opengl/gl_state.cpp')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_state.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.cpp b/src/video_core/renderer_opengl/gl_state.cpp index 7b8a15ed2..f91dfe36a 100644 --- a/src/video_core/renderer_opengl/gl_state.cpp +++ b/src/video_core/renderer_opengl/gl_state.cpp @@ -2,8 +2,8 @@ // Licensed under GPLv2 or any later version // Refer to the license.txt file included. +#include <iterator> #include <glad/glad.h> -#include "common/common_funcs.h" #include "common/logging/log.h" #include "video_core/renderer_opengl/gl_state.h" @@ -192,7 +192,7 @@ void OpenGLState::Apply() const { } // Textures - for (unsigned i = 0; i < ARRAY_SIZE(texture_units); ++i) { + for (size_t i = 0; i < std::size(texture_units); ++i) { if (texture_units[i].texture_2d != cur_state.texture_units[i].texture_2d) { glActiveTexture(TextureUnits::MaxwellTexture(i).Enum()); glBindTexture(GL_TEXTURE_2D, texture_units[i].texture_2d); |
