Original Post
Hi everybody. I use OpenGL at work when working on the company's engine. Until now, everything was working in 2D ortho mode (using glVertex2f) and everything was fine. I recently needed to use 3D coordinates too (glVertex3f). I discovered a problem : I have a memory leak in the application (it uses ~70Mo of virtual memory and it slowly grows). If I use the engine more intensively, the groth speeds up : it can be as much as 1Mo each 5-10s !!! I traced everything in the code and it seems that, if I don't call glVertex3f/glVertex2f, then everything is just fine (but nothing is drawn on the screen). The solution to this memory leak is to call glClear (even with glClear(0)) each frame. Does anybody have any idea about this ? I run a Dell PIV 3Ghz with 1Go RAM and a NVidia Quadra with 512Mo with Windows XP. I tried two different drivers versions. The only people who seems to have the same problem has an ATI gfx card and no one answered his post, read it here). Thanks.