PDA

View Full Version : don't let vbo destory all



mikethebike
06-06-2013, 05:50 AM
Hi
using a vbo destroys the existing context, hence how to avoid such?
Thanks

thokra
06-06-2013, 08:43 AM
Since when do VBOs destroy anything? Nothing is destroyed. What are you talking about?

mikethebike
06-06-2013, 09:44 AM
I do a plugin, vbo is ok but everything else from the parent is gone. I would appreciate advice on how to save and restore the original.

thokra
06-06-2013, 09:52 AM
You're talking completely incoherent nonsense - pretty much like in the other thread you opened on this "plugin". Please be more accurate.

What do you mean by parent? The application dynamically loading a dynamically loaded library?

mhagain
06-06-2013, 10:34 AM
Just to be really clear to you.

This behaviour you get is not part of the way OpenGL behaves. You have a bug (or oversight/omission) in your own code that's causing it, and without seeing your code it's impossible to even guess what that bug/oversight/omission might be.

mikethebike
06-06-2013, 10:38 AM
Yes after commenting:
//glEnableClientState(GL_VERTEX_ARRAY);
it works! Honestly I don't know what the above was for...

mhagain
06-06-2013, 05:16 PM
Yes after commenting:
//glEnableClientState(GL_VERTEX_ARRAY);
it works! Honestly I don't know what the above was for...

Maybe you should read some documentation or tutorials before you go hacking at code. OpenGL may have a reputation for being easy, but that doesn't mean that you get to skip reading documentation.