OpenGL wglCreateContext fails when rendering onto a bitmap when not having rendered onto a window first

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


Answer this question

OpenGL wglCreateContext fails when rendering onto a bitmap when not having rendered onto a window first

  • Ben S

    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.



  • Ray Mordy

    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


  • OpenGL wglCreateContext fails when rendering onto a bitmap when not having rendered onto a window first