diff options
-rw-r--r-- | drape/hw_texture_ios.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drape/hw_texture_ios.mm b/drape/hw_texture_ios.mm index 98a9097f7c..538d24af05 100644 --- a/drape/hw_texture_ios.mm +++ b/drape/hw_texture_ios.mm @@ -125,7 +125,7 @@ HWTextureApple::HWTextureApple(ref_ptr<HWTextureAllocatorApple> allocator) HWTextureApple::~HWTextureApple() { - if (m_allocator == nullptr) + if (m_allocator != nullptr) { m_allocator->CVDestroyTexture(m_texture); m_allocator->CVDestroyPixelBuffer(m_directBuffer); |