Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaria Volvenkova <d.volvenkova@corp.mail.ru>2016-05-10 13:14:00 +0300
committerVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2016-05-12 10:38:39 +0300
commit229b82793eaeb9af89906acb576a3aa20e33a74c (patch)
treed9d0d9a403b64a736ba420fc0f25eab91f158c95 /drape/vertex_array_buffer.cpp
parenta1edf3069ad7dea776ffb9d39de5f355e6c7794a (diff)
Fixed assert on bind VAO.
Diffstat (limited to 'drape/vertex_array_buffer.cpp')
-rw-r--r--drape/vertex_array_buffer.cpp2
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;
}