[Solved]OpenGL VBO Inconsistency

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
RandomDever
Chaos Rift Regular
Chaos Rift Regular
Posts: 198
Joined: Thu Mar 26, 2009 8:42 pm
Current Project: My Engine
Programming Language of Choice: C++

[Solved]OpenGL VBO Inconsistency

Post by RandomDever »

For some reason my VBOs are all the same. VBO 1, 2 and 3 are all the same no matter what.
Why would all my VBO being overwritten every time glBufferData is called?
Please Help! :shock:
Last edited by RandomDever on Mon Aug 06, 2012 4:08 am, edited 1 time in total.
RandomDever
Chaos Rift Regular
Chaos Rift Regular
Posts: 198
Joined: Thu Mar 26, 2009 8:42 pm
Current Project: My Engine
Programming Language of Choice: C++

Re: OpenGL VBO Inconsistency

Post by RandomDever »

And I may have solved my own problem. BUT for posterity and google searchers here is the (possible) solution.
You apparently must use glVertexPointer etc. every time you bind the VBO to draw with it.
Post Reply