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

[656 byte] By [Wout] at [2007-12-29]
# 1
I'm just getting more insight in what

the problem is. It doesn't have to do anything with DirectX, the

problem seems to be trying to render on a bitmap, without having used

OpenGL for rendering on the screen. I just created a small test console

program to try and do OpenGL rendering on a bitmap, and it gives the

same error.

Some more details:
OS:

Windows XP Pro, graphics card NVIDIA GeForce 7600 Go (512 Mb memory).

Digging further!!!

Wout

Wout at 2007-9-4 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: DirectX 101...
# 2

You are very unlikley to get a good answer here especially now that you've identified that DirectX doesn't cause the issue.

Try http://www.opengl.org/cgi-bin/ubb/ultimatebb.cgi if you haven't already done that.

TheZMan at 2007-9-4 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: DirectX 101...