summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2015-08-24 13:02:44 -0400
committerGravatar bunnei2015-08-24 13:02:44 -0400
commitafd45d1d7f444c25ad7d8166e49170ff90aac76d (patch)
treef0a8495804f7a96bdaa4378972a964c7887add86 /src
parentMerge pull request #1064 from lioncash/matr (diff)
parentHWRenderer: Only reload the framebuffer from gpu memory if the hw renderer is... (diff)
downloadyuzu-afd45d1d7f444c25ad7d8166e49170ff90aac76d.tar.gz
yuzu-afd45d1d7f444c25ad7d8166e49170ff90aac76d.tar.xz
yuzu-afd45d1d7f444c25ad7d8166e49170ff90aac76d.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/video_core/debug_utils/debug_utils.cpp8
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 @@
25#include "common/math_util.h" 25#include "common/math_util.h"
26#include "common/vector_math.h" 26#include "common/vector_math.h"
27 27
28#include "core/settings.h"
29
28#include "video_core/pica.h" 30#include "video_core/pica.h"
29#include "video_core/renderer_base.h" 31#include "video_core/renderer_base.h"
30#include "video_core/utils.h" 32#include "video_core/utils.h"
@@ -45,8 +47,10 @@ void DebugContext::OnEvent(Event event, void* data) {
45 { 47 {
46 std::unique_lock<std::mutex> lock(breakpoint_mutex); 48 std::unique_lock<std::mutex> lock(breakpoint_mutex);
47 49
48 // Commit the hardware renderer's framebuffer so it will show on debug widgets 50 if (Settings::values.use_hw_renderer) {
49 VideoCore::g_renderer->hw_rasterizer->CommitFramebuffer(); 51 // Commit the hardware renderer's framebuffer so it will show on debug widgets
52 VideoCore::g_renderer->hw_rasterizer->CommitFramebuffer();
53 }
50 54
51 // TODO: Should stop the CPU thread here once we multithread emulation. 55 // TODO: Should stop the CPU thread here once we multithread emulation.
52 56