wgl

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 Thank you in advance for any help!

You are not trying to set the same RC to two different DC’s simultaneously or to two different threads are you? And is this the only RC involved? Did you get other RC’s before this one that caused the error?

Thank you for your help! I found the problem. It was a driver bug

Thanks anyway!