summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-10-30 01:15:11 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-10-30 01:27:24 +0100
commitc7698d0bc80b033944804b3133b83a4385c0c899 (patch)
treed9ebe811d5ba5ad77f7884c9befedec059859442 /src
parentgl_state: Remove unused Citra TextureUnits (diff)
downloadyuzu-c7698d0bc80b033944804b3133b83a4385c0c899.tar
yuzu-c7698d0bc80b033944804b3133b83a4385c0c899.tar.gz
yuzu-c7698d0bc80b033944804b3133b83a4385c0c899.tar.bz2
yuzu-c7698d0bc80b033944804b3133b83a4385c0c899.tar.lz
yuzu-c7698d0bc80b033944804b3133b83a4385c0c899.tar.xz
yuzu-c7698d0bc80b033944804b3133b83a4385c0c899.tar.zst
yuzu-c7698d0bc80b033944804b3133b83a4385c0c899.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_opengl/gl_state.cpp8
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;