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:
authorr.kuznetsov <r.kuznetsov@corp.mail.ru>2017-01-10 17:17:00 +0300
committerr.kuznetsov <r.kuznetsov@corp.mail.ru>2017-01-11 12:38:23 +0300
commit19501f8f985e97972289ede921dc6beda5597235 (patch)
treef288fe229eb2cc1dca599319be80af8e3b5d499c /drape/symbols_texture.cpp
parent840ca2bb19bb287cee1558c51c6fd896e74e3595 (diff)
Updated traffic arrow textures
Diffstat (limited to 'drape/symbols_texture.cpp')
-rw-r--r--drape/symbols_texture.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/drape/symbols_texture.cpp b/drape/symbols_texture.cpp
index 549f251f9c..5db348a0da 100644
--- a/drape/symbols_texture.cpp
+++ b/drape/symbols_texture.cpp
@@ -10,6 +10,10 @@
#include "base/string_utils.hpp"
+#ifdef DEBUG
+#include "3party/glm/glm/gtx/bit.hpp"
+#endif
+
namespace dp
{
@@ -155,6 +159,8 @@ void LoadSymbols(string const & skinPathName, bool convertToUV,
int w, h, bpp;
unsigned char * data = stbi_png_load_from_memory(&rawData[0], static_cast<int>(rawData.size()), &w, &h, &bpp, 0);
ASSERT_EQUAL(bpp, 4, ("Incorrect symbols texture format"));
+ ASSERT(glm::isPowerOfTwo(w), (w));
+ ASSERT(glm::isPowerOfTwo(h), (h));
if (width == w && height == h)
{