forked from organicmaps/organicmaps
quick fix for "rebind OpenGL object after update in different renderContext to see changes".
This commit is contained in:
parent
530f436fdc
commit
1d7cfdb07f
3 changed files with 6 additions and 6 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue