Archived

This topic is now archived and is closed to further replies.

Rendering Contexts and Pixel Formats

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

Is it possible to change the pixel format of the rending context without destroying and recreating the rendering context? The reason I ask is because when I change the rendering window’s color depth I destroy then recreate the rendering context and any textures that I created with the old rendering context are destroyed. I’m sure many other things are changed as well. Render states vertex buffers, display list. Is there any way to get around this? I don’t see any way in the MSDN documentation provided with VC++. Walter Byers walter.byers@mnsu.edu

Share this post


Link to post
Share on other sites
if you don t want to reload the textures you could create an invisible window create a render contex for it load the textures into this contex and share them via wglsharexyz
look the function name up in the redbook somewhere around page 649

Share this post


Link to post
Share on other sites