Freeing OpenGL textures?
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?
Call
to delete the objects and then reuse them if you want to setup new textures again.
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
Popular Topics
Advertisement