forked from organicmaps/organicmaps
current() function doesn't work on Samsung Galaxy Mini.
This commit is contained in:
parent
e6bb6837f3
commit
ea7ea1f207
4 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue