summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2019-10-29 21:15:11 -0300
committerGravatar ReinUsesLisp2019-10-29 21:27:24 -0300
commitc7698d0bc80b033944804b3133b83a4385c0c899 (patch)
treed9ebe811d5ba5ad77f7884c9befedec059859442 /src
parentgl_state: Remove unused Citra TextureUnits (diff)
downloadyuzu-c7698d0bc80b033944804b3133b83a4385c0c899.tar.gz
yuzu-c7698d0bc80b033944804b3133b83a4385c0c899.tar.xz
yuzu-c7698d0bc80b033944804b3133b83a4385c0c899.zip
gl_state: Minor style changes
Diffstat (limited to 'src')
-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) {
69} 69}
70 70
71void Enable(GLenum cap, bool& current_value, bool new_value) { 71void Enable(GLenum cap, bool& current_value, bool new_value) {
72 if (UpdateValue(current_value, new_value)) 72 if (UpdateValue(current_value, new_value)) {
73 Enable(cap, new_value); 73 Enable(cap, new_value);
74 }
74} 75}
75 76
76void Enable(GLenum cap, GLuint index, bool& current_value, bool new_value) { 77void Enable(GLenum cap, GLuint index, bool& current_value, bool new_value) {
77 if (UpdateValue(current_value, new_value)) 78 if (UpdateValue(current_value, new_value)) {
78 Enable(cap, index, new_value); 79 Enable(cap, index, new_value);
80 }
79} 81}
80 82
81} // namespace 83} // Anonymous namespace
82 84
83OpenGLState::OpenGLState() = default; 85OpenGLState::OpenGLState() = default;
84 86