diff options
| author | 2018-09-04 14:06:52 +0200 | |
|---|---|---|
| committer | 2018-09-04 14:10:05 +0200 | |
| commit | dce624e3f12f1fb8bab66a3e974037501653b3ed (patch) | |
| tree | 89116ad910ed24739b315676f054af9787709abd /src/core/core.cpp | |
| parent | command_processor: Use std::array for bound_engines. (diff) | |
| download | yuzu-dce624e3f12f1fb8bab66a3e974037501653b3ed.tar.gz yuzu-dce624e3f12f1fb8bab66a3e974037501653b3ed.tar.xz yuzu-dce624e3f12f1fb8bab66a3e974037501653b3ed.zip | |
core: Use a raw pointer in GetGPUDebugContext.
This helper is called very often. The memory ownership shall not be transfered, so just return the raw pointer.
Diffstat (limited to 'src/core/core.cpp')
| -rw-r--r-- | src/core/core.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 29983b9b4..cbab80881 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp | |||
| @@ -441,8 +441,8 @@ void System::SetGPUDebugContext(std::shared_ptr<Tegra::DebugContext> context) { | |||
| 441 | impl->debug_context = std::move(context); | 441 | impl->debug_context = std::move(context); |
| 442 | } | 442 | } |
| 443 | 443 | ||
| 444 | std::shared_ptr<Tegra::DebugContext> System::GetGPUDebugContext() const { | 444 | Tegra::DebugContext* System::GetGPUDebugContext() const { |
| 445 | return impl->debug_context; | 445 | return impl->debug_context.get(); |
| 446 | } | 446 | } |
| 447 | 447 | ||
| 448 | void System::SetFilesystem(std::shared_ptr<FileSys::VfsFilesystem> vfs) { | 448 | void System::SetFilesystem(std::shared_ptr<FileSys::VfsFilesystem> vfs) { |