Major Memory Leak Caused By ATi dlls

I tried searching Google, but unfortunately couldn’t find anything more than user-errors crashing programs with the dlls.

Problem is, I have a major memory leak in my program. We’re talking jumps of 8k bytes or so. I ran a memory validator (for what it’s worth) and as far as I can tell none of the code I’ve made myself is causing the issue. Almost every entry, however, has to do with atigktxx.dll and atioglxx.dll.

These are also files that VS warns “Cannot find or open the PDB file”.

Here is the entire code, I apologize if pastebin broke my formatting.

http://pastebin.com/fdYFS7R0

and here is the output from the compiler:

http://pastebin.com/jXrkHSKd

Any help or insight is greatly appreciated.

b1nary

You seem to be loading resources in your draw function.
nEngine.nLoadTexture2D (“Textures/GroundTexture.tga”, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_REPEAT);

For reference
http://www.opengl.org/wiki/Common_Mistakes#glGenTextures_in_render_function

[QUOTE=V-man;1236943]You seem to be loading resources in your draw function.
nEngine.nLoadTexture2D (“Textures/GroundTexture.tga”, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_REPEAT);

For reference
http://www.opengl.org/wiki/Common_Mistakes#glGenTextures_in_render_function[/QUOTE]

This was it. Thank you so much, talk about a derp.

FYI: If you run with GLIntercept, it will tell you about basic resource leaks on shutown: