Sign in to follow this  
_goat

OpenGL Locking VBO twice gives null pointer

Recommended Posts

Basically just what the title says. I have a dynamic-copy VBO created, and if I lock (glMapBufferARB) it twice, the second time it gives me a null pointer. I've googled, but all the tutorials just have them specifying the data on glBufferDataARB. Is this regular behaviour for OpenGL?

Share this post


Link to post
Share on other sites
Quote:
Original post by _goat
Basically just what the title says. I have a dynamic-copy VBO created, and if I lock (glMapBufferARB) it twice, the second time it gives me a null pointer. I've googled, but all the tutorials just have them specifying the data on glBufferDataARB. Is this regular behaviour for OpenGL?


What about using glUnmapBufferARB it prior to locking it again ?

Share this post


Link to post
Share on other sites
Quote:
Original post by Ingenu
Quote:
Original post by _goat
Basically just what the title says. I have a dynamic-copy VBO created, and if I lock (glMapBufferARB) it twice, the second time it gives me a null pointer. I've googled, but all the tutorials just have them specifying the data on glBufferDataARB. Is this regular behaviour for OpenGL?


What about using glUnmapBufferARB it prior to locking it again ?


Yes, I'm doing that.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this