In my application, I have to have two Ogre render windows, and I have to use OpenGL. I can set the rendersystem and initialize Ogre::Root just fine, and I create the render windows using
Code: Select all
Ogre::Root::createRenderWindow()Code: Select all
glLineWidth(int)It seems that Ogre creates a unique GL context for each new window, but it only ever keeps the first context active. That is, if I use
Code: Select all
glLineWidth(2)Code: Select all
wglGetCurrentContext()This may be a straightforward question and I'm just missing something basic, but how do I get the OpenGL context associated with a specific Ogre renderwindow? Some of the documentation I've found when searching about this problem suggests that the way to do it would be to create the contexts outside of Ogre and then force Ogre to use them, but then it seems that I'd be getting into a lot of stuff I don't know how to do (manual buffer switching, etc.).
Thanks in advance for any insight.