Sign in to follow this  
Slaru

OpenGL Changing the pixel format

Recommended Posts

Hello, Is it possible to change the pixel format (so I can change number of multisampling samples) under windows without invalidating the rendering context? After reading some documentation, it looks like I can't do this. Can this be confirmed? Also, when the rendering context is deleted, all textures and other OpenGL data is destroyed too, right? I am asking this because I am writing the code that encapsulates the creation of a window for OpenGL usage. I had planned for the functionality to change the number of samples used in multisampling, but this requires changing the pixel format. Slaru

Share this post


Link to post
Share on other sites
your correct, to change the pixel format you must destroy the rendering context, this is because the multi-sample buffers are an intergral part of the rendering context.

And when a rendering context is deleted all non-shared resources linked to the rendering contest should be deleted. I say should be cause its possible that due to driver bugs or even by design, resources might not get freed. Also, as hinted at, resources which are shared between rendering contexts will remain valid as long as one context exists with the data shared to it.

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