Unbinding VBO's

Member
Posts: 95
Joined: 2009.09
Post: #1
Hey,

since I started to issue a second "draw" call for the UI of my game, I have to somehow unbind the VBO's that I bound with
Code:
    glBindBuffer(GL_ARRAY_BUFFER, *vertexBuffer);
(Otherwise I can't access standard pointers).

So as I understood, one just calls
Code:
    glBindBuffer(GL_VERTEX_ARRAY, 0);
The problem is, if I add this line I get a "glBindBuffer_Exec"-Error.

Any hints on this my friends?
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
GL_VERTEX_ARRAY is not a legal constant there.
Quote this message in a reply
Member
Posts: 95
Joined: 2009.09
Post: #3
(Aug 2, 2010 07:10 AM)OneSadCookie Wrote:  GL_VERTEX_ARRAY is not a legal constant there.

Ah, frack, that's what happens when one uses Xcode's autocomplete to much.
Thanks !
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  N-Body with GLSL and VBO's (how to approach)? mcMike 4 5,902 May 24, 2008 11:06 AM
Last Post: mcMike
  help about VBO's bonanza 5 3,636 Sep 6, 2007 10:57 PM
Last Post: bonanza
  Use of VBO's with frame animation MD2's/MD3's (etc) = benefits? Jones 22 8,926 Oct 28, 2006 01:25 AM
Last Post: OneSadCookie