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.
merge-requests/60/head
Markus Wick 2018-09-04 14:06:52 +07:00
parent 2081ed7db2
commit dce624e3f1
2 changed files with 3 additions and 3 deletions

@ -441,8 +441,8 @@ void System::SetGPUDebugContext(std::shared_ptr<Tegra::DebugContext> context) {
impl->debug_context = std::move(context); impl->debug_context = std::move(context);
} }
std::shared_ptr<Tegra::DebugContext> System::GetGPUDebugContext() const { Tegra::DebugContext* System::GetGPUDebugContext() const {
return impl->debug_context; return impl->debug_context.get();
} }
void System::SetFilesystem(std::shared_ptr<FileSys::VfsFilesystem> vfs) { void System::SetFilesystem(std::shared_ptr<FileSys::VfsFilesystem> vfs) {

@ -209,7 +209,7 @@ public:
void SetGPUDebugContext(std::shared_ptr<Tegra::DebugContext> context); void SetGPUDebugContext(std::shared_ptr<Tegra::DebugContext> context);
std::shared_ptr<Tegra::DebugContext> GetGPUDebugContext() const; Tegra::DebugContext* GetGPUDebugContext() const;
void SetFilesystem(std::shared_ptr<FileSys::VfsFilesystem> vfs); void SetFilesystem(std::shared_ptr<FileSys::VfsFilesystem> vfs);