Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: VAO gets invalid after calling app.display()  (Read 1117 times)

0 Members and 1 Guest are viewing this topic.

jsmtux

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • http://fortalezadetovar.net/, http://open2d.sourceforge.net/
VAO gets invalid after calling app.display()
« on: July 22, 2013, 08:13:58 pm »
I have a weird problem, after calling app.display when I call glBindVertexArray I get an Invalid operation error.

cout  <<int(glIsVertexArray(2));
       
        this->display();
        cout  <<int(glIsVertexArray(2));

If I set up a VAO with id 2 if I call this code I get that before calling display it is valid and after it isn't.

Could anyone tell me why is this happening.
Thank you very much

The Hatchet

  • Full Member
  • ***
  • Posts: 135
    • View Profile
    • Email
Re: VAO gets invalid after calling app.display()
« Reply #1 on: July 24, 2013, 09:24:45 pm »
1.  What is "this" refering to?
2.  is 'display()' your own function?
3.  please post a minimal and complete code example that reproduces your problem so we can have a better look

 

anything