diff options
| author | bunnei <bunneidev@gmail.com> | 2015-08-24 13:02:44 -0400 | 
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2015-08-24 13:02:44 -0400 | 
| commit | afd45d1d7f444c25ad7d8166e49170ff90aac76d (patch) | |
| tree | f0a8495804f7a96bdaa4378972a964c7887add86 | |
| parent | d6a5a00c24daa90911d39734baa5283ca3c67f0b (diff) | |
| parent | d1b9383d865eb6be7f5e0a340312de96deff6975 (diff) | |
Merge pull request #1063 from Subv/hw_renderer_debug_fb
HWRenderer: Only reload the framebuffer from gpu memory if the hw renderer is in use during a breakpoint
| -rw-r--r-- | src/video_core/debug_utils/debug_utils.cpp | 8 | 
1 files changed, 6 insertions, 2 deletions
diff --git a/src/video_core/debug_utils/debug_utils.cpp b/src/video_core/debug_utils/debug_utils.cpp index 8ad77f0c8..059445f7d 100644 --- a/src/video_core/debug_utils/debug_utils.cpp +++ b/src/video_core/debug_utils/debug_utils.cpp @@ -25,6 +25,8 @@  #include "common/math_util.h"  #include "common/vector_math.h" +#include "core/settings.h" +  #include "video_core/pica.h"  #include "video_core/renderer_base.h"  #include "video_core/utils.h" @@ -45,8 +47,10 @@ void DebugContext::OnEvent(Event event, void* data) {      {          std::unique_lock<std::mutex> lock(breakpoint_mutex); -        // Commit the hardware renderer's framebuffer so it will show on debug widgets -        VideoCore::g_renderer->hw_rasterizer->CommitFramebuffer(); +        if (Settings::values.use_hw_renderer) { +            // Commit the hardware renderer's framebuffer so it will show on debug widgets +            VideoCore::g_renderer->hw_rasterizer->CommitFramebuffer(); +        }          // TODO: Should stop the CPU thread here once we multithread emulation.  | 
