View Full Version : freeing up texture memory needed when freeing up display list?

05-26-2002, 11:03 PM
Let's say I've created a texture map using glGenTextures/bindTexture/TexParameter/TexImage2D... and then I make a display list that wraps that texture around its primitive object. When I call glDeleteList(...) on the above DL, do I also need to free up the memory that was taken up by the texture, or will it automatically be de-allocated? Thanks.

05-26-2002, 11:48 PM
The texture and the display list are two different objects, and the texture will not be affected when deleting the display list. So you need to manually delete the texture aswell.