1
Graphics / Re: GL_INVALID_OPERATION messages pop up when loading textures.
« on: February 23, 2020, 05:47:35 pm »what SFML version do you use? i remember that the "glFlush()" were removed!!.I am using SFML 2.5.1. I tried and It didn't worked. Also I did the same thing in another sfml program (same function and image) and it worked :/
also, there is a potential bug in "loadTextures()", the sf::Texture object has tobe inside the nested for-loops. try to change it and see what gonna happen.
It's probably caused when the textures get copied, which happen at the very least when you push back a texture into the vector, and also internally to the vector every time it resizes (which will get worse the bigger the vector gets). Storing a texture in a vector is also very prone to the white square problem. Consider perhaps using a vector of std::unique_ptr or maybe even some sort of resource holder such as this or this.Ok i'll try