Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatoliy Tomilov <tomilovanatoliy@gmail.com>2020-08-26 11:52:36 +0300
committerMaksim Andrianov <maksimandrianov1@gmail.com>2020-09-14 13:36:46 +0300
commit58f7713a5b10e4d8356192b28213a03c6da3eb2c (patch)
tree8f23f87f3500676d2dbf69dfceec6b0653490c66 /drape_frontend
parentf06af03124bc50453ea2b9821484785176ad7873 (diff)
[drape] [iOS] Changes to catch a source of crash at dp::CPUBuffer::UploadData MAPSME-12898
Diffstat (limited to 'drape_frontend')
-rw-r--r--drape_frontend/area_shape.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/drape_frontend/area_shape.cpp b/drape_frontend/area_shape.cpp
index 79670f6fe0..94af6c08c8 100644
--- a/drape_frontend/area_shape.cpp
+++ b/drape_frontend/area_shape.cpp
@@ -134,8 +134,8 @@ void AreaShape::DrawArea3D(ref_ptr<dp::GraphicsContext> context, ref_ptr<dp::Bat
m2::PointD const & colorUv, m2::PointD const & outlineUv,
ref_ptr<dp::Texture> texture) const
{
- ASSERT(!m_buildingOutline.m_indices.empty(), ());
- ASSERT(!m_buildingOutline.m_normals.empty(), ());
+ CHECK(!m_buildingOutline.m_indices.empty(), ());
+ CHECK_EQUAL(m_buildingOutline.m_normals.size() * 2, m_buildingOutline.m_indices.size(), ());
glsl::vec2 const uv = glsl::ToVec2(colorUv);