diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-10-29 21:15:11 -0300 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-10-29 21:27:24 -0300 |
commit | c7698d0bc80b033944804b3133b83a4385c0c899 (patch) | |
tree | d9ebe811d5ba5ad77f7884c9befedec059859442 /src | |
parent | a14d202ac27ae255cec635872125106750c81ca4 (diff) |
gl_state: Minor style changes
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/renderer_opengl/gl_state.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.cpp b/src/video_core/renderer_opengl/gl_state.cpp index 88c32bd4f..cd440e0d8 100644 --- a/src/video_core/renderer_opengl/gl_state.cpp +++ b/src/video_core/renderer_opengl/gl_state.cpp @@ -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; |