MCPcopy Create free account
hub / github.com/OGRECave/ogre / bindGLVertexArray

Method bindGLVertexArray

RenderSystems/GLES2/src/OgreGLES2StateCacheManager.cpp:166–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164 }
165
166 void GLES2StateCacheManager::bindGLVertexArray(GLuint vao)
167 {
168#ifdef OGRE_ENABLE_STATE_CACHE
169 if(mActiveVertexArray != vao)
170 {
171 mActiveVertexArray = vao;
172 OGRE_CHECK_GL_ERROR(glBindVertexArrayOES(vao));
173 //we also need to clear the cached GL_ELEMENT_ARRAY_BUFFER value, as it is invalidated by glBindVertexArray
174 mActiveBufferMap[GL_ELEMENT_ARRAY_BUFFER] = 0;
175 }
176#else
177 OGRE_CHECK_GL_ERROR(glBindVertexArrayOES(vao));
178#endif
179 }
180
181 void GLES2StateCacheManager::invalidateStateForTexture(GLuint texture)
182 {

Callers 1

_bindVaoMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected