OpenGL wglCreateContext fails when rendering onto a bitmap when not having rendered onto a windo
Hi,
I'm having a
frustrating problem with the wglCreateContext call. I'm using DirectX
for rendering on screen, and I'm using OpenGL to render the same thing
onto a bitmap (for printing). When not using DirectX, the OpenGL bitmap
creation works fine, but when using DirectX, the wglCreateContext call
fails and GetLastError returns 8 ("Not enough storage is available to
process this command"). Anybody got any thoughts on this? A number of
calls are succeeding before this call fails: getting the screen DC,
CreateDIBSection, SetPixelFormat all succeed.
All help is appreciated!
Wout

