summaryrefslogtreecommitdiff
path: root/src/mbgl/gl/object_store.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/gl/object_store.hpp')
-rw-r--r--src/mbgl/gl/object_store.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mbgl/gl/object_store.hpp b/src/mbgl/gl/object_store.hpp
index 9f82c5a95b..956d65bda1 100644
--- a/src/mbgl/gl/object_store.hpp
+++ b/src/mbgl/gl/object_store.hpp
@@ -7,7 +7,6 @@
#include <array>
#include <algorithm>
-#include <cassert>
#include <memory>
#include <vector>
@@ -90,7 +89,7 @@ public:
UniqueTexturePool createTexturePool() {
ObjectPool ids;
MBGL_CHECK_ERROR(glGenTextures(TextureMax, ids.data()));
- assert(ids.size() == size_t(TextureMax));
+ static_assert(ids.size() == size_t(TextureMax), "Texture ids size mismatch");
return UniqueTexturePool { std::move(ids), { this } };
}