when using directx9 driver all is fine and each splitter pane renders as expected but when using the opengl driver, the entire screen is rendered to instead of the splitter windows hWnd.
m_hWnd is the splitter view's safe hwnd;
Code: Select all
SExposedVideoData video;
switch (pDoc->getApplication()->getDriver()->getDriverType())
{
case EDT_DIRECT3D9:
video.D3D9.HWnd = m_hWnd;
pDoc->getApplication()->getDriver()->beginScene(true, true, SColor(20, 20, 20, 20), video);
pDoc->getApplication()->getActiveLevel()->render();
pDoc->getApplication()->getDriver()->endScene();
break;
case EDT_OPENGL:
video.OpenGLWin32.HWnd = m_hWnd;
pDoc->getApplication()->getDriver()->beginScene(true, true, SColor(20, 20, 20, 20), video);
pDoc->getApplication()->getActiveLevel()->render();
pDoc->getApplication()->getDriver()->endScene();
break;
}