quick fix for "rebind OpenGL object after update in different renderContext to see changes".

This commit is contained in:
rachytski 2012-04-24 13:17:18 +04:00 committed by Alex Zolotarev
parent 530f436fdc
commit 1d7cfdb07f
3 changed files with 6 additions and 6 deletions

View file

@ -84,9 +84,9 @@ namespace yg
return;
}
#ifndef OMIM_OS_ANDROID
/*#ifndef OMIM_OS_ANDROID
if (current() != m_id)
#endif
#endif*/
OGLCHECK(glBindTexture(GL_TEXTURE_2D, m_id));
}

View file

@ -129,9 +129,9 @@ namespace yg
if (m_useVA)
return;
#ifndef OMIM_OS_ANDROID
/*#ifndef OMIM_OS_ANDROID
if (m_id != current())
#endif
#endif*/
OGLCHECK(glBindBufferFn(GL_ELEMENT_ARRAY_BUFFER, m_id));
}

View file

@ -140,9 +140,9 @@ namespace yg
if (m_useVA)
return;
#ifndef OMIM_OS_ANDROID
/*#ifndef OMIM_OS_ANDROID
if (m_id != current())
#endif
#endif*/
OGLCHECK(glBindBufferFn(GL_ARRAY_BUFFER, m_id));
}