summaryrefslogtreecommitdiff
path: root/src/render/mobileopengl2graphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/mobileopengl2graphics.cpp')
-rw-r--r--src/render/mobileopengl2graphics.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/render/mobileopengl2graphics.cpp b/src/render/mobileopengl2graphics.cpp
index 028dc3b28..36f6263d1 100644
--- a/src/render/mobileopengl2graphics.cpp
+++ b/src/render/mobileopengl2graphics.cpp
@@ -1301,6 +1301,8 @@ void MobileOpenGL2Graphics::finalize(ImageVertexes *restrict const vert)
STD_VECTOR<GLuint>::const_iterator ivbo;
const int sz = CAST_S32(floatTexPool.size());
+ if (sz == 0)
+ return;
vbos.resize(sz);
mglGenBuffers(sz, &vbos[0]);