diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2018-10-06 16:20:41 -0400 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2018-10-06 16:20:41 -0400 |
commit | 4f7b33cdcfdcbc11bcc506018dff1b06db3cf3f6 (patch) | |
tree | 688f040a857c59629101076487c097da6bc5dff3 /drivers | |
parent | 37386f112bafa9c4e94c342f6d5f04392a5623f7 (diff) |
Remove redundant "== false" code
Some of this code has been re-organized.
f
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gles3/rasterizer_storage_gles3.cpp | 2 | ||||
-rw-r--r-- | drivers/wasapi/audio_driver_wasapi.cpp | 11 |
2 files changed, 6 insertions, 7 deletions
diff --git a/drivers/gles3/rasterizer_storage_gles3.cpp b/drivers/gles3/rasterizer_storage_gles3.cpp index 58c0a104c1..91e4dbcab9 100644 --- a/drivers/gles3/rasterizer_storage_gles3.cpp +++ b/drivers/gles3/rasterizer_storage_gles3.cpp @@ -6841,7 +6841,7 @@ void RasterizerStorageGLES3::_render_target_allocate(RenderTarget *rt) { glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, level); glDisable(GL_SCISSOR_TEST); glColorMask(1, 1, 1, 1); - if (rt->buffers.active == false) { + if (!rt->buffers.active) { glDepthMask(GL_TRUE); } diff --git a/drivers/wasapi/audio_driver_wasapi.cpp b/drivers/wasapi/audio_driver_wasapi.cpp index 566940b872..a91e41b008 100644 --- a/drivers/wasapi/audio_driver_wasapi.cpp +++ b/drivers/wasapi/audio_driver_wasapi.cpp @@ -796,14 +796,13 @@ Error AudioDriverWASAPI::capture_start() { return err; } - if (audio_input.active == false) { - audio_input.audio_client->Start(); - audio_input.active = true; - - return OK; + if (audio_input.active) { + return FAILED; } - return FAILED; + audio_input.audio_client->Start(); + audio_input.active = true; + return OK; } Error AudioDriverWASAPI::capture_stop() { |