diff options
author | Daria Volvenkova <d.volvenkova@corp.mail.ru> | 2016-05-10 13:14:00 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2016-05-12 10:38:39 +0300 |
commit | 229b82793eaeb9af89906acb576a3aa20e33a74c (patch) | |
tree | d9d0d9a403b64a736ba420fc0f25eab91f158c95 /drape | |
parent | a1edf3069ad7dea776ffb9d39de5f355e6c7794a (diff) |
Fixed assert on bind VAO.
Diffstat (limited to 'drape')
-rw-r--r-- | drape/vertex_array_buffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<IndexBufferMutator> 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; } |