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?
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:
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?