diff options
Diffstat (limited to 'src/render/modernopenglgraphics.cpp')
-rw-r--r-- | src/render/modernopenglgraphics.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/render/modernopenglgraphics.cpp b/src/render/modernopenglgraphics.cpp index c792021ef..473b8d264 100644 --- a/src/render/modernopenglgraphics.cpp +++ b/src/render/modernopenglgraphics.cpp @@ -1304,6 +1304,8 @@ void ModernOpenGLGraphics::finalize(ImageVertexes *restrict const vert) STD_VECTOR<GLuint>::const_iterator ivbo; const int sz = CAST_S32(intTexPool.size()); + if (sz == 0) + return; vbos.resize(sz); mglGenBuffers(sz, &vbos[0]); /* |