Freeing OpenGL textures?

Started by
0 comments, last by MARS_999 17 years, 5 months ago
I know how to use the glTexImage2D function. However, when I'm finished with a texture created with it (for instance, if a particular piece of art isn't used on the next level of my game or something like that), how do I free the memory taken up by that function call?
my siteGenius is 1% inspiration and 99% perspiration
Advertisement
Call

glDeleteTextures

to delete the objects and then reuse them if you want to setup new textures again.

This topic is closed to new replies.

Advertisement