diff --git a/yg/framebuffer.cpp b/yg/framebuffer.cpp index ae6c69a811..093eae2310 100644 --- a/yg/framebuffer.cpp +++ b/yg/framebuffer.cpp @@ -38,7 +38,9 @@ namespace yg void FrameBuffer::makeCurrent() { +#ifndef OMIM_OS_ANDROID if (m_id != current()) +#endif OGLCHECK(glBindFramebufferFn(GL_FRAMEBUFFER_MWM, m_id)); if (m_depthBuffer) diff --git a/yg/indexbuffer.cpp b/yg/indexbuffer.cpp index 218ae5db90..c68099bb15 100644 --- a/yg/indexbuffer.cpp +++ b/yg/indexbuffer.cpp @@ -129,7 +129,9 @@ namespace yg if (m_useVA) return; +#ifndef OMIM_OS_ANDROID if (m_id != current()) +#endif OGLCHECK(glBindBufferFn(GL_ELEMENT_ARRAY_BUFFER, m_id)); } diff --git a/yg/renderbuffer.cpp b/yg/renderbuffer.cpp index 2dc70ea41c..7b74a8e9c3 100644 --- a/yg/renderbuffer.cpp +++ b/yg/renderbuffer.cpp @@ -104,7 +104,9 @@ namespace yg void RenderBuffer::makeCurrent() const { +#ifndef OMIM_OS_ANDROID if (m_id != current()) +#endif OGLCHECK(glBindRenderbufferFn(GL_RENDERBUFFER_MWM, m_id)); } diff --git a/yg/vertexbuffer.cpp b/yg/vertexbuffer.cpp index b9537b8c7b..210e5d962d 100644 --- a/yg/vertexbuffer.cpp +++ b/yg/vertexbuffer.cpp @@ -140,7 +140,9 @@ namespace yg if (m_useVA) return; +#ifndef OMIM_OS_ANDROID if (m_id != current()) +#endif OGLCHECK(glBindBufferFn(GL_ARRAY_BUFFER, m_id)); }