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?

Nope. Just the Texture object.


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).