Sam Brown
2006-04-19 09:49:08 UTC
Hi guys,
I have a problem with wglCreateContext failing on a particular
machine. Now, I know this is normally supposed to be either a pixel
format problem, or a problem with the graphics drivers. However, I'm
getting no error whatsoever from GetLastError, and the pixel format
seems fine.
These are the flags DescribePixelFormat gives me for the one chosen by
ChoosePixelFormat (which is unchanged from the NeHe tutorials):
PFD_TYPE_RGBA
PFD_MAIN_PLANE
PFD_DOUBLEBUFFER
PFD_DRAW_TO_WINDOW
PFD_SUPPORT_OPENGL
PFD_SWAP_EXCHANGE
(The system is using W2K, I don't know the SP).
From that, wglCreateContext returns NULL, but GetLastError gives me
"The operation completed sucessfully".
I'm not yet in a position to actually get my hands on one of the
offending machines, so I'm in a bit of a fix. Does anyone have any
ideas?
Cheers,
- Sam
I have a problem with wglCreateContext failing on a particular
machine. Now, I know this is normally supposed to be either a pixel
format problem, or a problem with the graphics drivers. However, I'm
getting no error whatsoever from GetLastError, and the pixel format
seems fine.
These are the flags DescribePixelFormat gives me for the one chosen by
ChoosePixelFormat (which is unchanged from the NeHe tutorials):
PFD_TYPE_RGBA
PFD_MAIN_PLANE
PFD_DOUBLEBUFFER
PFD_DRAW_TO_WINDOW
PFD_SUPPORT_OPENGL
PFD_SWAP_EXCHANGE
(The system is using W2K, I don't know the SP).
From that, wglCreateContext returns NULL, but GetLastError gives me
"The operation completed sucessfully".
I'm not yet in a position to actually get my hands on one of the
offending machines, so I'm in a bit of a fix. Does anyone have any
ideas?
Cheers,
- Sam