I am using glGenLists like this:
my_list = glGenLists(1)
glNewList(array_list, GL_COMPILE)
# some OpenGL instructions go here
glEndList()
In similar way I am using textues:
my_texture = glGenTextures(1)
If I understand correctly, the textures and lists are stored at GPU. How can I dispose them when I do not need them anymore?
Is enough to ovewrite the pointers (my_list = False
). Or do I need to tell to pyopengl that I do not need them anymore somehow manually?
There is a glDelete* that deallocates a previously allocated resource for each glGen*.