From 7e9f6f11b560f593596d7c3603b4a9e4c2e18d85 Mon Sep 17 00:00:00 2001 From: rachytski Date: Tue, 8 Mar 2011 14:59:00 +0200 Subject: [PATCH] fixes parasite data rendering (p.e. ruler from the main thread) on the model surface due to an error in vertex buffer memory synchronization. --- yg/indexbuffer.cpp | 2 +- yg/vertexbuffer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/yg/indexbuffer.cpp b/yg/indexbuffer.cpp index 8009bc4845..256e5726f8 100644 --- a/yg/indexbuffer.cpp +++ b/yg/indexbuffer.cpp @@ -69,7 +69,7 @@ namespace yg /// orphaning the old copy of the buffer data. /// this provides that the glMapBuffer will not wait. - /// OGLCHECK(glBufferData(GL_ELEMENT_ARRAY_BUFFER, m_size, 0, GL_DYNAMIC_DRAW)); + OGLCHECK(glBufferData(GL_ELEMENT_ARRAY_BUFFER, m_size, 0, GL_DYNAMIC_DRAW)); #ifdef OMIM_GL_ES m_gpuData = glMapBufferOES(GL_ELEMENT_ARRAY_BUFFER, GL_WRITE_ONLY_OES); diff --git a/yg/vertexbuffer.cpp b/yg/vertexbuffer.cpp index b5943742ab..f845d172fc 100644 --- a/yg/vertexbuffer.cpp +++ b/yg/vertexbuffer.cpp @@ -69,7 +69,7 @@ namespace yg /// orphaning the old copy of the buffer data. /// this provides that the glMapBuffer will not wait. - /// OGLCHECK(glBufferData(GL_ARRAY_BUFFER, m_size, 0, GL_DYNAMIC_DRAW)); + OGLCHECK(glBufferData(GL_ARRAY_BUFFER, m_size, 0, GL_DYNAMIC_DRAW)); #ifdef OMIM_GL_ES m_gpuData = glMapBufferOES(GL_ARRAY_BUFFER, GL_WRITE_ONLY_OES);