From 229b82793eaeb9af89906acb576a3aa20e33a74c Mon Sep 17 00:00:00 2001 From: Daria Volvenkova Date: Tue, 10 May 2016 13:14:00 +0300 Subject: [PATCH] Fixed assert on bind VAO. --- drape/vertex_array_buffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }