current() function doesn't work on Samsung Galaxy Mini.

This commit is contained in:
rachytski 2012-01-26 13:06:56 +04:00 committed by Alex Zolotarev
parent e6bb6837f3
commit ea7ea1f207
4 changed files with 8 additions and 0 deletions

View file

@ -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)

View file

@ -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));
}

View file

@ -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));
}

View file

@ -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));
}