display list's query

if after i created a display list and decided not to use it, will the display list still be stored in memory?


Yes! the display list woundn’t free from the memory until you call this function to delete the list.

//list= name of the display list
//range = number of the display list

void glDeleteLists( GLuint list, GLsizei range);

Hope it can help.

[This message has been edited by cwc36 (edited 12-09-2003).]

Alternatively: if you do not wish to delete the id generated glGenList, then also

…do nothing here

Will empty out the list and should free up the memory, while keeping the id