summaryrefslogtreecommitdiff
path: root/src/video_core/debug_utils
diff options
context:
space:
mode:
authorGravatar Subv2018-03-24 23:35:06 -0500
committerGravatar Subv2018-03-24 23:35:06 -0500
commit0ce52b1da2228f3325d94e52bead7335c8b07d1c (patch)
treedb027be43dcb9fecb99fc7f8e698d3affd7e28c2 /src/video_core/debug_utils
parentGPU: Added a function to retrieve the active textures for a shader stage. (diff)
downloadyuzu-0ce52b1da2228f3325d94e52bead7335c8b07d1c.tar.gz
yuzu-0ce52b1da2228f3325d94e52bead7335c8b07d1c.tar.xz
yuzu-0ce52b1da2228f3325d94e52bead7335c8b07d1c.zip
GPU: Make the debug_context variable a member of the frontend instead of a global.
Diffstat (limited to 'src/video_core/debug_utils')
-rw-r--r--src/video_core/debug_utils/debug_utils.cpp2
-rw-r--r--src/video_core/debug_utils/debug_utils.h2
2 files changed, 0 insertions, 4 deletions
diff --git a/src/video_core/debug_utils/debug_utils.cpp b/src/video_core/debug_utils/debug_utils.cpp
index 73fd4d7a3..22d44aab2 100644
--- a/src/video_core/debug_utils/debug_utils.cpp
+++ b/src/video_core/debug_utils/debug_utils.cpp
@@ -23,8 +23,6 @@
23 23
24namespace Tegra { 24namespace Tegra {
25 25
26std::shared_ptr<DebugContext> g_debug_context;
27
28void DebugContext::DoOnEvent(Event event, void* data) { 26void DebugContext::DoOnEvent(Event event, void* data) {
29 { 27 {
30 std::unique_lock<std::mutex> lock(breakpoint_mutex); 28 std::unique_lock<std::mutex> lock(breakpoint_mutex);
diff --git a/src/video_core/debug_utils/debug_utils.h b/src/video_core/debug_utils/debug_utils.h
index 98461d6d9..bbba8e380 100644
--- a/src/video_core/debug_utils/debug_utils.h
+++ b/src/video_core/debug_utils/debug_utils.h
@@ -160,6 +160,4 @@ private:
160 std::list<BreakPointObserver*> breakpoint_observers; 160 std::list<BreakPointObserver*> breakpoint_observers;
161}; 161};
162 162
163extern std::shared_ptr<DebugContext> g_debug_context;
164
165} // namespace Tegra 163} // namespace Tegra