SFML community forums

Help => Graphics => Topic started by: jsmtux on July 22, 2013, 08:13:58 pm

Title: VAO gets invalid after calling app.display()
Post by: jsmtux 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
Title: Re: VAO gets invalid after calling app.display()
Post by: The Hatchet 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