From 82ec0dbcb54fca347464e7bd1d694fd97d71c580 Mon Sep 17 00:00:00 2001 From: ExMix Date: Sun, 15 Dec 2013 14:42:14 +0300 Subject: pointers refactoring --- drape/texture.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'drape/texture.hpp') diff --git a/drape/texture.hpp b/drape/texture.hpp index 44507b9d5b..536d871504 100644 --- a/drape/texture.hpp +++ b/drape/texture.hpp @@ -57,24 +57,24 @@ private: class TextureBinding { public: - TextureBinding(const string & uniformName, bool isEnabled, uint8_t samplerBlock, ReferencePoiner texture); + TextureBinding(const string & uniformName, bool isEnabled, uint8_t samplerBlock, RefPointer texture); void Bind(int8_t uniformLocation); bool IsEnabled() const; const string & GetUniformName() const; void SetIsEnabled(bool isEnabled); - void SetTexture(ReferencePoiner texture); + void SetTexture(RefPointer texture); bool operator<(const TextureBinding & other) const { return m_isEnabled < other.m_isEnabled || m_samplerBlock < other.m_samplerBlock - || m_texture < other.m_texture; + || m_texture.IsContentLess(other.m_texture); } private: string m_uniformName; bool m_isEnabled; uint8_t m_samplerBlock; - ReferencePoiner m_texture; + RefPointer m_texture; }; -- cgit v1.2.3