mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-28 06:52:47 +00:00
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.
This commit is contained in:
parent
2081ed7db2
commit
dce624e3f1
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue