yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

gl_state: Minor style changes

This commit is contained in:
ReinUsesLisp 2019-10-29 21:15:11 -03:00
parent a14d202ac2
commit c7698d0bc8
No known key found for this signature in database
GPG Key ID: 2DFC508897B39CFE
1 changed files with 5 additions and 3 deletions

View File

@ -69,16 +69,18 @@ void Enable(GLenum cap, GLuint index, bool enable) {
}
void Enable(GLenum cap, bool& current_value, bool new_value) {
if (UpdateValue(current_value, new_value))
if (UpdateValue(current_value, new_value)) {
Enable(cap, new_value);
}
}
void Enable(GLenum cap, GLuint index, bool& current_value, bool new_value) {
if (UpdateValue(current_value, new_value))
if (UpdateValue(current_value, new_value)) {
Enable(cap, index, new_value);
}
}
} // namespace
} // Anonymous namespace
OpenGLState::OpenGLState() = default;