1
General / Re: push/resetGLStates and buffers
« on: October 31, 2017, 04:59:01 am »QuoteI found no answer on the internet or these forumsThis is surprising, because it is a recurring problem.
its largely because I didn't know what the problem was until I actually solved it.
The only keywords I could use involved things such as sprites not drawing. Once I found the problem I should have searched, but I didn't, that was another my bad moment.
As for the other suggestion, I plan to drop the graphics module, but the current project has a time crunch to it so I don't have the time to manage basic but useful functions that the Sprite object has, so I may as well use that for now, and simplify the draw code to what you have built in to SFML.
Anyway, thanks for the help, sorry for repeating a question/problem that has been looked at before.
However while I am here, are you unable to make resetGLStates reset the buffer states because SFML itself still uses old OpenGL? After all, the fix was to simply call
glBindBuffer(GL_ARRAY_BUFFER, 0);