diff --git a/MobileGL/MG_State/GLState/TextureState/TextureUnit.cpp b/MobileGL/MG_State/GLState/TextureState/TextureUnit.cpp index 1fdd368d..5b9dba82 100644 --- a/MobileGL/MG_State/GLState/TextureState/TextureUnit.cpp +++ b/MobileGL/MG_State/GLState/TextureState/TextureUnit.cpp @@ -22,6 +22,10 @@ namespace MobileGL { void TextureUnit::SetSamplerObject(SharedPtr sampler) { m_sampler = sampler; } + + SharedPtr TextureUnit::GetSamplerObject() const { + return m_sampler; + } } // namespace GLState } // namespace MG_State } // namespace MobileGL \ No newline at end of file