diff options
| author | 2019-10-30 01:30:31 +0000 | |
|---|---|---|
| committer | 2019-10-30 01:30:31 +0000 | |
| commit | 3d0cde6a756a43902e58d8493228d7c18767e884 (patch) | |
| tree | 2633bc00ebe517a2b9a99186a11fd3335bc161fc | |
| parent | gl_state: Move dirty checks to individual apply calls instead of Apply (diff) | |
| download | yuzu-3d0cde6a756a43902e58d8493228d7c18767e884.tar.gz yuzu-3d0cde6a756a43902e58d8493228d7c18767e884.tar.xz yuzu-3d0cde6a756a43902e58d8493228d7c18767e884.zip | |
gl_state: Use std::array::fill instead of std::fill
Co-Authored-By: Mat M. <mathew1800@gmail.com>
| -rw-r--r-- | src/video_core/renderer_opengl/gl_state.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) { | |||
| 86 | OpenGLState::OpenGLState() = default; | 86 | OpenGLState::OpenGLState() = default; |
| 87 | 87 | ||
| 88 | void OpenGLState::SetDefaultViewports() { | 88 | void OpenGLState::SetDefaultViewports() { |
| 89 | std::fill(std::begin(viewports), std::end(viewports), Viewport{}); | 89 | viewports.fill(Viewport{}); |
| 90 | 90 | ||
| 91 | depth_clamp.far_plane = false; | 91 | depth_clamp.far_plane = false; |
| 92 | depth_clamp.near_plane = false; | 92 | depth_clamp.near_plane = false; |