diff --git a/drape/vertex_array_buffer.cpp b/drape/vertex_array_buffer.cpp index fa7d78d114..e4dab7b1af 100644 --- a/drape/vertex_array_buffer.cpp +++ b/drape/vertex_array_buffer.cpp @@ -275,9 +275,9 @@ void VertexArrayBuffer::ApplyMutation(ref_ptr indexMutator, bool VertexArrayBuffer::Bind() const { - ASSERT(m_VAO != 0, ("You need to call Build method before bind it and render")); if (GLExtensionsList::Instance().IsSupported(GLExtensionsList::VertexArrayObject)) { + ASSERT(m_VAO != 0, ("You need to call Build method before bind it and render")); GLFunctions::glBindVertexArray(m_VAO); return true; }