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

Author Topic: VAO openGL issues  (Read 1336 times)

0 Members and 1 Guest are viewing this topic.

bryce910

  • Newbie
  • *
  • Posts: 31
    • View Profile
VAO openGL issues
« on: November 24, 2015, 07:45:44 am »
Hey guys!

I have a quick question, I am using openGl and after getting the shaders issue figured out I have ran across another problem that is probably just somewhere in my code.  I am curious though if SFML has any issues with VAO's in opengl?

Code: [Select]
glUseProgram(programId); //very basic shader
glBindVertexArray(vaoId); // VAO holding my VBO data
glDrawArrays(GL_TRIANGLES, 0, 3); // should draw a basic traingle
glBindVertexArray(0); // unbind VAO
glUseProgram(0); //unbind shader

doing this I get the error:


Code: [Select]
An internal OpenGl call failed in Texture.cpp(154)
Expression:
glGenTextures(1, &texture)
Error_description:
GL_INVALID_OPERATION
 The specified operation  is not allowed in the current state

Any ideas?

 

anything