Jump to content
  • Advertisement
Sign in to follow this  
Estor

wglCopyContext with pbuffer ??

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

Hi Short: after wglCopyContext on pbuffer which is target for texture, it returns FALSE and GetLastError() = ERROR_INVALID_HANDLE or driver crashes with "Access Violation" if the current context is a source context [dead] It's very importand for me that pbuffer and rendering context ( source one ) both have this same settings. I even tried glPush/PopAttrib() but it's not cross context. i don't want to do it "by hand" using glGet() [sick] thanks for any halp

Share this post


Link to post
Share on other sites
Advertisement
Make sure the source context is not current before copying.

All in all, wglCopyContext is considered evil. Many drivers have trouble implementing it correctly, and using it will most likely introduce a lot of instabilities on some hardware. Then, it's far from being an efficient function. In short, avoid using it.

Share this post


Link to post
Share on other sites
Quote:
Original post by Yann L
Make sure the source context is not current before copying.


Yes... i tried that at the beginning, i even tried something stupid like

wglMakeCurrent( null, null );

of curse... without luck [depressed]

Ok, then i see the best i can do is to write own copyContext

Thanks Yann L

Share this post


Link to post
Share on other sites
Quote:
Original post by LtJax
you don't want to use the same context on the pbuffer and the window?


I want them to have this same settings like lighting, texture modes etc. every thing that you can Push/Pop using glPush/PopAttrib().

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!