Jump to content
  • Advertisement
Sign in to follow this  
Slaru

OpenGL Changing the pixel format

This topic is 4884 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

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!