Hi, im using double buffering in opengl and switch them via the function SwapBuffers(HDC).
I would like to switch to the surface that GDI can draw to. The only way I know of is counting the number of times I swap buffers and if its pair then I know Im on the buffer that GDI can draw to.
However, Im not sure if this is a correct way of doing this. I wonder if there is an API call to directly switch to the GDI drawable buffer? I looked on the OpenGL section of MSDN but found nothing to respect.



