I am trying to get OpenGL working as a plugin in internet explorer.
In a draw callback I get a device context and dimensions of the html element.
I have no control over the creation of this device context.
(it is the IHTMLPainter::Draw() callback).
Now on this device I can call ChoosePixelFormat(), SetPixelFormat() and wglCreateContext() with no error.
But calling wglMakeCurrent() on this dc with the newly created open gl context results in error 2005 : The requested clipping operation is not supported.
The OpenGL code works in an example where I create the window myself. So the difference is in the properties of the device context or window.
You cannot change this once the dc is created I guess, but does someone have any ideas about how to work around this ?