diff --git a/SHADE_Engine/src/Graphics/MiddleEnd/Interface/SHGraphicsSystem.cpp b/SHADE_Engine/src/Graphics/MiddleEnd/Interface/SHGraphicsSystem.cpp index e84955d7..6914df49 100644 --- a/SHADE_Engine/src/Graphics/MiddleEnd/Interface/SHGraphicsSystem.cpp +++ b/SHADE_Engine/src/Graphics/MiddleEnd/Interface/SHGraphicsSystem.cpp @@ -1185,7 +1185,7 @@ namespace SHADE return fontLibrary; } - Handle const& SHGraphicsSystem::GetUsableSubpass(std::string const& subpassName) const noexcept + Handle SHGraphicsSystem::GetUsableSubpass(std::string const& subpassName) const noexcept { if (usableSubpassesMapping.contains(subpassName)) { diff --git a/SHADE_Engine/src/Graphics/MiddleEnd/Interface/SHGraphicsSystem.h b/SHADE_Engine/src/Graphics/MiddleEnd/Interface/SHGraphicsSystem.h index bf283bc8..86b233fd 100644 --- a/SHADE_Engine/src/Graphics/MiddleEnd/Interface/SHGraphicsSystem.h +++ b/SHADE_Engine/src/Graphics/MiddleEnd/Interface/SHGraphicsSystem.h @@ -399,7 +399,7 @@ namespace SHADE uint32_t GetCurrentFrameIndex(void) const noexcept { return renderContext.GetCurrentFrame(); } SHFontLibrary const& GetFontLibrary (void) const noexcept; const SHMeshLibrary& GetMeshLibrary() const noexcept { return meshLibrary; }; - Handle const& GetUsableSubpass(std::string subpassName) const noexcept; + Handle GetUsableSubpass(std::string const& subpassName) const noexcept; /*-----------------------------------------------------------------------------*/ /* Getters */