From 6b32e241616af42253910a94584ac92b23fcfa20 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 2 Aug 2018 11:19:55 -0400 Subject: [PATCH] gl_state: Make texture_units a std::array Gets rid of the use of a raw C array. --- src/video_core/renderer_opengl/gl_state.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/video_core/renderer_opengl/gl_state.h b/src/video_core/renderer_opengl/gl_state.h index 3398d7c04e..24b1d956b3 100644 --- a/src/video_core/renderer_opengl/gl_state.h +++ b/src/video_core/renderer_opengl/gl_state.h @@ -82,7 +82,7 @@ public: GLenum logic_op; // GL_LOGIC_OP_MODE // 3 texture units - one for each that is used in PICA fragment shader emulation - struct { + struct TextureUnit { GLuint texture_2d; // GL_TEXTURE_BINDING_2D GLuint sampler; // GL_SAMPLER_BINDING struct { @@ -104,7 +104,8 @@ public: Unbind(); sampler = 0; } - } texture_units[32]; + }; + std::array texture_units; struct { GLuint read_framebuffer; // GL_READ_FRAMEBUFFER_BINDING