From 7680a87beca310acb00970167ee8596bc7df8b64 Mon Sep 17 00:00:00 2001 From: ExMix Date: Tue, 24 Sep 2013 18:59:37 +0300 Subject: [PATCH] [drape] bug fix --- drape/glbuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drape/glbuffer.cpp b/drape/glbuffer.cpp index 60b6bf66be..49f635c342 100644 --- a/drape/glbuffer.cpp +++ b/drape/glbuffer.cpp @@ -31,7 +31,7 @@ GLBuffer::~GLBuffer() void GLBuffer::UploadData(const void * data, uint16_t elementCount) { - ASSERT(m_capacity > elementCount + m_size, ("Not enough memory to upload ", elementCount, " elements")); + ASSERT(m_capacity >= elementCount + m_size, ("Not enough memory to upload ", elementCount, " elements")); Bind(); GLFunctions::glBufferSubData(glTarget(m_t), elementCount * m_elementSize, data, m_size * m_elementSize); m_size += elementCount;