Im changing my code for using VBOs instead of simple vertex array, but it slows me down a lot. I think the error may be on glDrawElements, because im using an array of index to draw the tri strips. When i used only va it worked fine.
Im doing this:
glBindBufferARB( GL_ARRAY_BUFFER_ARB, vbo_id );
glVertexPointer( 3, GL_FLOAT, 0, BUFFER_OFFSET (offset));
glDrawElements(GL_TRIANGLE_STRIP, (TER_PATCH_SIZE*2)/k+2 ,GL_UNSIGNED_SHORT, &index_aux[lod]]);
In the last line, i use a pre-stored array of indexes with varius lods, and the lod tells me what lod to use.
When i use vbo, the the mesh came into a mess, and the fos slows dows a lot.
Can anybody help me??