Correctly freeing resources in opengl need advice


currently im freeing my little game’s resources when the game quits (for example the textures by using glDeleteTextures() )

i was wondering. does opengl take care of this?

what should i do apart from freeing the resources that i loaded into the game (i can free sounds etc thats apart from opengl) ??

how should i properly release everything and left no memory filled with trash?

of course within the bounds of opengl and the context i mean

sorry about this stupid questions though

does opengl take care of this?
GL spec doesn’t mention this, but we can assume that when the context is destroyed, the driver will free the memory.

Of course, the proper thing to do is delete the texture, display list, VBO, FBO and any other GL object.

It’s your choice.