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