Sign in to follow this  
Deception666

wglDeleteContext

Recommended Posts

Deception666    182
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
Yann L    1802
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this