ssaunders
04-10-2001, 04:31 AM
I have a very annoying problem.
I am generating a texture with:
glGenTextures(1,&texture[0]);
and then creating mipmaps using
gluBuild2DMipmaps();
The problem is that every time i call the function to perform this, the program gets slower and slower and uses up more and more RAM until the computer eventually dies. I have tried glDeleteTextures(1,&texture[0]) to free the memory storing the texture but this doesnt seem to work either.
Could someone please tell me how i can free this memory.
Thanks,
Steve
I am generating a texture with:
glGenTextures(1,&texture[0]);
and then creating mipmaps using
gluBuild2DMipmaps();
The problem is that every time i call the function to perform this, the program gets slower and slower and uses up more and more RAM until the computer eventually dies. I have tried glDeleteTextures(1,&texture[0]) to free the memory storing the texture but this doesnt seem to work either.
Could someone please tell me how i can free this memory.
Thanks,
Steve