}
} else {
checkAndSetTextureArrayUnit(i, rendRecord, caps);
// grab a vboID and make sure it exists and is up to date.
final FloatBufferData data = textureCoords.get(i);
final int vboID = setupVBO(data, context);
// Found good vbo
if (vboID != 0) {
if (!valid || !wasOn) {
// enable bit in tracking int
enabledTextures |= (2 << i);
// enable state
GL11.glEnableClientState(GL11.GL_TEXTURE_COORD_ARRAY);
}
// set our active vbo
LwjglRendererUtil.setBoundVBO(rendRecord, vboID);
// send data
GL11.glTexCoordPointer(data.getValuesPerTuple(), GL11.GL_FLOAT, 0, 0);
}
// Not a good vbo, disable it.
else {
if (!valid || wasOn) {
// disable bit in tracking int