PDA

View Full Version : wgl



Trenchcoat
01-07-2001, 01:10 AM
Hi@all!

I use WGL to create a rendering context:

m_hRC = wglCreateContext(m_hDC);

It does not return NULL so it should have work, right?

After that I try to make this context current:

wglMakeCurrent(m_hDC, m_hRC);

After that I get the following debug error message:

WGL Message:System Error: (26):wglDrvCliSetContext

And nothing is drawn then.

Does anybody knnow what this error message means? Or does anybody know where I could get the meaning of theWGL error codes? That would be great http://www.opengl.org/discussion_boards/ubb/smile.gif Thank you in advance for any help!

FoxDie
01-07-2001, 05:32 AM
Try
m_hDC=GetDC (hwnd);

Trenchcoat
01-07-2001, 07:33 AM
Thanks for your reply! I found the error. It was a driver bug http://www.opengl.org/discussion_boards/ubb/smile.gif

Thank you anyway!