Hey guys can anyone tell me why doesn't OpenGL free the memory each turn, as it should do?
I noticed this yesterday when i load a mesh file onto my CMesh format to display 3D objects. While loading everything where fine, but when i started painting, RAM usage never stopped rising!
I've worked my ass on it without sleeping all day and night, and i'm sure that it is an OpenGL-related problem!
Can anyone tell me a reason? I'll put my code here later.
I seriously doubt it's opengl not freeing memory. Maybe once or twice, but if it "keeps growing", it has to be your code.
Run the program with valgrind to see where the memory was lost.