From 3d0cde6a756a43902e58d8493228d7c18767e884 Mon Sep 17 00:00:00 2001 From: Rodrigo Locatti Date: Wed, 30 Oct 2019 01:30:31 +0000 Subject: [PATCH] gl_state: Use std::array::fill instead of std::fill Co-Authored-By: Mat M. --- src/video_core/renderer_opengl/gl_state.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_core/renderer_opengl/gl_state.cpp b/src/video_core/renderer_opengl/gl_state.cpp index c431a8635..f25148362 100644 --- a/src/video_core/renderer_opengl/gl_state.cpp +++ b/src/video_core/renderer_opengl/gl_state.cpp @@ -86,7 +86,7 @@ void Enable(GLenum cap, GLuint index, bool& current_value, bool new_value) { OpenGLState::OpenGLState() = default; void OpenGLState::SetDefaultViewports() { - std::fill(std::begin(viewports), std::end(viewports), Viewport{}); + viewports.fill(Viewport{}); depth_clamp.far_plane = false; depth_clamp.near_plane = false;