Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 7 of 7

Thread: don't let vbo destory all

  1. #1
    Intern Contributor
    Join Date
    May 2008
    Posts
    77

    don't let vbo destory all

    Hi
    using a vbo destroys the existing context, hence how to avoid such?
    Thanks

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Apr 2010
    Location
    Germany
    Posts
    1,099
    Since when do VBOs destroy anything? Nothing is destroyed. What are you talking about?

  3. #3
    Intern Contributor
    Join Date
    May 2008
    Posts
    77
    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.

  4. #4
    Senior Member OpenGL Pro
    Join Date
    Apr 2010
    Location
    Germany
    Posts
    1,099
    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?

  5. #5
    Senior Member OpenGL Pro
    Join Date
    Jan 2007
    Posts
    1,135
    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.

  6. #6
    Intern Contributor
    Join Date
    May 2008
    Posts
    77
    Yes after commenting:
    //glEnableClientState(GL_VERTEX_ARRAY);
    it works! Honestly I don't know what the above was for...

  7. #7
    Senior Member OpenGL Pro
    Join Date
    Jan 2007
    Posts
    1,135
    Quote Originally Posted by mikethebike View Post
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •