diff options
author | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2019-05-17 17:13:52 +0300 |
---|---|---|
committer | Zoia <niakris90@gmail.com> | 2019-05-23 14:04:38 +0300 |
commit | d9df94db3f75cfe2615ce859add7a06d93c98de9 (patch) | |
tree | 57d1ccf0f9adc2b90ecd46418fe49d77cd326cd6 /drape/texture_manager.hpp | |
parent | e4db767a029d1deabcf3fc09788efe869927f02d (diff) |
[drape] Update visual scale
Diffstat (limited to 'drape/texture_manager.hpp')
-rw-r--r-- | drape/texture_manager.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drape/texture_manager.hpp b/drape/texture_manager.hpp index 6dd4b5d484..e6bba40c32 100644 --- a/drape/texture_manager.hpp +++ b/drape/texture_manager.hpp @@ -195,6 +195,7 @@ private: template<typename TText, typename TBuffer> void CalcGlyphRegions(TText const & text, int fixedHeight, TBuffer & buffers) { + CHECK(m_isInitialized, ()); size_t const hybridGroupIndex = FindHybridGlyphsGroup(text, fixedHeight); ASSERT(hybridGroupIndex != GetInvalidGlyphGroup(), ()); HybridGlyphGroup & group = m_hybridGlyphGroups[hybridGroupIndex]; @@ -212,6 +213,7 @@ private: static constexpr size_t GetInvalidGlyphGroup(); private: + bool m_isInitialized = false; ref_ptr<GlyphGenerator> m_glyphGenerator; std::string m_resPostfix; std::vector<drape_ptr<Texture>> m_symbolTextures; |