View Full Version : glDeleteTexture(s)?

01-15-2001, 09:14 AM
Okay, so I create a OpenGL texture object.
Create a polygon shape and use glBind(..).
Does glDeleteTexture(s) destroy or free up the memory for the polygon too?

Pete Bassett
01-15-2001, 09:46 AM
Nope. Just the Texture object.


01-16-2001, 10:06 AM
In fact, the card wont retain polygon data in it, unless your card stores display lists in hardware and you're using display lists (then you can free display lists with glDeleteLists). OpenGL is an immediate mode 3D API, which means that it doesn't retain scene info such as polygons, objects, etc, in it, it just draws the polygons you send using the last states set before the glVertex commands. In opengl, you dont "create" a polygon shape, you draw it, or cache it in a display list (for later optimized drawing).