summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-04-20 15:43:02 +0200
committerGitHub <noreply@github.com>2018-04-20 15:43:02 +0200
commit701dd649e61470d3172390e138fd28b745dc20b4 (patch)
tree338a1669725ad9c0c01ee04bf69f57018a28e764 /src/video_core/renderer_opengl
parentMerge pull request #366 from lioncash/vec (diff)
parentcommon_funcs: Remove ARRAY_SIZE macro (diff)
downloadyuzu-701dd649e61470d3172390e138fd28b745dc20b4.tar
yuzu-701dd649e61470d3172390e138fd28b745dc20b4.tar.gz
yuzu-701dd649e61470d3172390e138fd28b745dc20b4.tar.bz2
yuzu-701dd649e61470d3172390e138fd28b745dc20b4.tar.lz
yuzu-701dd649e61470d3172390e138fd28b745dc20b4.tar.xz
yuzu-701dd649e61470d3172390e138fd28b745dc20b4.tar.zst
yuzu-701dd649e61470d3172390e138fd28b745dc20b4.zip
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r--src/video_core/renderer_opengl/gl_state.cpp4
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);