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!
[Solved]OpenGL VBO Inconsistency
Moderator: Coders of Rage
-
- 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
Last edited by RandomDever on Mon Aug 06, 2012 4:08 am, edited 1 time in total.
My first game: http://donsvoice.com/randomdever/Duck%2 ... 01.0.0.zip
My second game: http://donsvoice.com/randomdever/Space%20Invaders.zip
My third game: http://donsvoice.com/randomdever/BreakOut!.zip
My second game: http://donsvoice.com/randomdever/Space%20Invaders.zip
My third game: http://donsvoice.com/randomdever/BreakOut!.zip
-
- 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
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.
You apparently must use glVertexPointer etc. every time you bind the VBO to draw with it.
My first game: http://donsvoice.com/randomdever/Duck%2 ... 01.0.0.zip
My second game: http://donsvoice.com/randomdever/Space%20Invaders.zip
My third game: http://donsvoice.com/randomdever/BreakOut!.zip
My second game: http://donsvoice.com/randomdever/Space%20Invaders.zip
My third game: http://donsvoice.com/randomdever/BreakOut!.zip