My problem is this:
I’m reading in the paths to files containing textures (TGA-format), and then I’m loading the textures. The thing is, that sometimes I’m loading the same image (texture) twice or more, which of course is a waste of memory. Due to the structure of my program, it is not so easy just to test wether a certain path has already been used. Doing that would reduce the problem somewhat, but not entirely. So my question is this: Can I ask OpenGL wether a texture has already been loaded?