diff options
| author | Markus Wick <markus@selfnet.de> | 2018-09-04 14:06:52 +0200 |
|---|---|---|
| committer | Markus Wick <markus@selfnet.de> | 2018-09-04 14:10:05 +0200 |
| commit | 5093e008c911e79215c01a310f08556bfb7a3920 (patch) | |
| tree | 89116ad910ed24739b315676f054af9787709abd /src/core/core.cpp | |
| parent | ca64dbd6fe4e49d0fc8cdbda9500d79652659e51 (diff) | |
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 29983b9b40..cbab80881c 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -441,8 +441,8 @@ void System::SetGPUDebugContext(std::shared_ptr<Tegra::DebugContext> context) { impl->debug_context = std::move(context); } -std::shared_ptr<Tegra::DebugContext> System::GetGPUDebugContext() const { - return impl->debug_context; +Tegra::DebugContext* System::GetGPUDebugContext() const { + return impl->debug_context.get(); } void System::SetFilesystem(std::shared_ptr<FileSys::VfsFilesystem> vfs) { |
