glTexImage2D() memory allocation problem

when I call glTexImage2D() for multiple times, can previous allocated memory be freed automatically each time when glTexImage2D() is called?

glDeleteTextures to get rid of it entirely, glTexSubImage2D to replace it with something else.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.