I've made a CEGUI test project to check GUI rendering with custom objects on the screen.
But when I run it iit seem to me, that CEGUI blocks backbuffer clearing.
I've tried the MRT, but my graphic card doesn't support it.
Problems looks like that:
Code: Select all
while(dx.run()) //winapi etc.
{
dx.device -> BeginScene();
dx.device -> Clear( 0, NULL, D3DCLEAR_TARGET, D3DCOLOR_XRGB(0, 0, 0), 1.0f, 0L );
dx.draw.fillRect(0,0,500,500,0xffff0000);
dx.draw.flush();
sys.renderGUI();
dx.end_render(); //end scene & present
};
So what is wrong with it?