MCPcopy Create free account
hub / github.com/Tencent/tgfx / bindVertexArray

Method bindVertexArray

src/gpu/opengl/GLState.cpp:205–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205void GLState::bindVertexArray(unsigned vao) {
206 DEBUG_ASSERT(interface->caps()->vertexArrayObjectSupport);
207 if (vertexArray == vao) {
208 return;
209 }
210 auto gl = interface->functions();
211 gl->bindVertexArray(vao);
212 vertexArray = vao;
213}
214
215void GLState::useProgram(unsigned programID) {
216 if (program == programID) {

Callers 2

onDrawMethod · 0.80
activateMethod · 0.80

Calls 2

capsMethod · 0.45
functionsMethod · 0.45

Tested by

no test coverage detected