Here's my main game loop: EDIT: after further testing, I discovered the leak is coming from how I'm drawing the shape using openGL. So here's the code for drawing the box:
EDIT2: Okay, after some more testing, turns out all I needed was to add these two lines after glEnd();
glDisable(GL_TEXTURE_2D); glDeleteTextures( 1, &texture );
THE PROBLEM NOW
Now I've tried implementing FluidStudios memory manager which looks pretty awesome, but I can't seem to get it to work.
I can access a few variables from the class because it's actually defined as a type in the header file, but then there are these functions that are just floating independently in the header file that I'm not sure how to access.
I tried:
#include "mmgr.h"
extern void m_dumpMemoryReport(const char *, const bool); //Adding this alone without the below lines doesn't give an error
//now trying to access it using only *ONE* of the two bellow
m_dumpMemoryReport("mem.txt",true); //undefined reference error
m_dumpMemoryReport(); //undefined reference error
Any help on either of these (the memory leak or getting that memory manager to work) would be appreciated! Thanks!



















