diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-10-06 07:18:00 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-16 22:11:30 +0100 |
commit | 31478c6c1b841b9a820742830b136775fafe270f (patch) | |
tree | e8f5644dd6c570cf8ee08e5e23592983162a8ec4 /src/video_core/renderer_vulkan/vk_state_tracker.h | |
parent | texture_cache: Refactor scaled image size calculation (diff) | |
download | yuzu-31478c6c1b841b9a820742830b136775fafe270f.tar yuzu-31478c6c1b841b9a820742830b136775fafe270f.tar.gz yuzu-31478c6c1b841b9a820742830b136775fafe270f.tar.bz2 yuzu-31478c6c1b841b9a820742830b136775fafe270f.tar.lz yuzu-31478c6c1b841b9a820742830b136775fafe270f.tar.xz yuzu-31478c6c1b841b9a820742830b136775fafe270f.tar.zst yuzu-31478c6c1b841b9a820742830b136775fafe270f.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_state_tracker.h')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_state_tracker.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/video_core/renderer_vulkan/vk_state_tracker.h b/src/video_core/renderer_vulkan/vk_state_tracker.h index ac2bbebe0..40a149832 100644 --- a/src/video_core/renderer_vulkan/vk_state_tracker.h +++ b/src/video_core/renderer_vulkan/vk_state_tracker.h @@ -71,13 +71,15 @@ public: } bool TouchViewports() { - return Exchange(Dirty::Viewports, false) || - Exchange(VideoCommon::Dirty::RescaleViewports, false); + const bool dirty_viewports = Exchange(Dirty::Viewports, false); + const bool rescale_viewports = Exchange(VideoCommon::Dirty::RescaleViewports, false); + return dirty_viewports || rescale_viewports; } bool TouchScissors() { - return Exchange(Dirty::Scissors, false) || - Exchange(VideoCommon::Dirty::RescaleScissors, false); + const bool dirty_scissors = Exchange(Dirty::Scissors, false); + const bool rescale_scissors = Exchange(VideoCommon::Dirty::RescaleScissors, false); + return dirty_scissors || rescale_scissors; } bool TouchDepthBias() { |