I’ve made some rendering with out using VBO. Now i want to add VBO for more complex rendering. I’m just creating a VBO now, keeping the old rendering as it was and i render nothing with VBO now. Here is the code:
GLuint bufId;
glGenBuffers(1, &bufId);
glBindBuffer(type, bufId);
glBufferData(type, size, 0, GL_STATIC_DRAW);
//size = 100000;
That’s the only code about VBO. But if the last stroke is not commented then i get EXC_BAD_ACCESS in old rendering when drawing GL_TRIANGLE_STRIP. I’ve put glGetError() before this bad access and it returns 0. What is the problem? thanks
I’ve found the problem. You have to unbind VBO if you want to draw with out it:
after that everything worked