Important warning for those using DirectX
Posted: Thu Nov 11, 2010 04:30
After I gave head to break for a few hours, I managed to solve the problem he was having.
The CEGUI was altering the state of my device when I was calling the function to render:
I solved the problem by simply saving all current states and applying them again after render CEGUI
look this:
Thanks
I hope that this information is useful
The CEGUI was altering the state of my device when I was calling the function to render:
Code: Select all
CEGUI::System::getSingleton().renderGUI();
I solved the problem by simply saving all current states and applying them again after render CEGUI
look this:
Code: Select all
IDirect3DStateBlock9* pStateBlock = NULL;
m_pDevice->CreateStateBlock(D3DSBT_ALL, &pStateBlock);
pStateBlock->Capture();
CEGUI::System::getSingleton().renderGUI();
pStateBlock->Apply();
pStateBlock->Release();
Thanks
I hope that this information is useful