• Advertisement
Sign in to follow this  

wglDeleteContext

This topic is 4325 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am interested in knowing what wglDeleteContext does behind the scenes. The obvious answer is that it deletes the render context. Since it deletes the render context, does anyone know if it also deletes other allocated resources, such as textures and shaders? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Undefined and implementation dependent. Resources such as textures and shaders can be shared accross multiple contexts, so in practice they're probably reference counted. While wglDeleteContext will clean up some stuff behind the scenes, you should only rely on its primary documented functionality of deleting a context. You should also clean up all your allocated resources yourself.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement