PDA

View Full Version : Using HDC after SwapBuffers(HDC hdc)



Coconut
03-15-2001, 08:55 AM
After I drew a screen and do a SwapBuffers(), is it safe to BitBlt from its HDC?

mcraighead
03-15-2001, 02:43 PM
No, GDI and OpenGL are not synchronized with each other.

- Matt

Siwko
03-16-2001, 05:26 PM
Originally posted by Coconut:
After I drew a screen and do a SwapBuffers(), is it safe to BitBlt from its HDC?

Generally, yes.

You may still have some problems though. as you'll be tempted to blit from incompatible DC's.