2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

gl_state: Use std::array::fill instead of std::fill

Co-Authored-By: Mat M. <mathew1800@gmail.com>
This commit is contained in:
Rodrigo Locatti 2019-10-30 01:30:31 +00:00 committed by GitHub
parent ce20ed8e4e
commit 3d0cde6a75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;