unloading textures
I have a switch statement that loads in the texture that I need at that time; the problem is that it keeps loading in the texture when it is called and won't unload it at all, if I need a new texture it loads in the new texture on top of the old one, this crashes the system within 60 seconds. Is there any way I can unload a texture at the end of a cycle?
I have tried - texBack.glwUnloadTGA(); at the end of main cycle but it doesn't seem to unload the texture, yet the same command will unload all the textures at the end of hte program.
James
[edited by - phantom007 on April 4, 2002 1:27:35 AM]
www.koalacomics.com.au for a humour comic
www.lobag.com for my fantasy RPG PBBG
www.testcricketmanager.com for my sports management game
www.lobag.com for my fantasy RPG PBBG
www.testcricketmanager.com for my sports management game
i think you are looking for the glDeleteTextures function.
Leaking texture memory is generally a Bad Thing (TM).
[edit] goddam link screwed up...
[edited by - Bad Monkey on April 4, 2002 1:10:47 AM]
Leaking texture memory is generally a Bad Thing (TM).
[edit] goddam link screwed up...
[edited by - Bad Monkey on April 4, 2002 1:10:47 AM]
Thanks for the link, I''ve read the site so now I''ll spend the next hour working out how to use it properly 
A strategy sports game that can turn into open warfare
''Bloody Football'' - www.koalacomics.com.au/bloody

A strategy sports game that can turn into open warfare
''Bloody Football'' - www.koalacomics.com.au/bloody
www.koalacomics.com.au for a humour comic
www.lobag.com for my fantasy RPG PBBG
www.testcricketmanager.com for my sports management game
www.lobag.com for my fantasy RPG PBBG
www.testcricketmanager.com for my sports management game
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement