diff options
| author | 2019-10-29 21:15:11 -0300 | |
|---|---|---|
| committer | 2019-10-29 21:27:24 -0300 | |
| commit | c7698d0bc80b033944804b3133b83a4385c0c899 (patch) | |
| tree | d9ebe811d5ba5ad77f7884c9befedec059859442 /src | |
| parent | gl_state: Remove unused Citra TextureUnits (diff) | |
| download | yuzu-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.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) { | |||
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | void Enable(GLenum cap, bool& current_value, bool new_value) { | 71 | void 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 | ||
| 76 | void Enable(GLenum cap, GLuint index, bool& current_value, bool new_value) { | 77 | void 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 | ||
| 83 | OpenGLState::OpenGLState() = default; | 85 | OpenGLState::OpenGLState() = default; |
| 84 | 86 | ||