Just a little bug, but quite annoying because it fills the debug console, drowning other messages;
The Direct3D9 driver has these lines in beginScene;
Code: Select all
hr = pID3DDevice->Clear( 0, NULL, flags, color.color, 1.0, 0);
if (FAILED(hr))
os::Printer::log("DIRECT3D9 clear failed.", ELL_WARNING);
A simple fix;
Code: Select all
hr = pID3DDevice->Clear( 0, NULL, flags, color.color, 1.0, 0);
if (FAILED(hr)&&flags)
os::Printer::log("DIRECT3D9 clear failed.", ELL_WARNING);
Code: Select all
if(flags){
hr = pID3DDevice->Clear( 0, NULL, flags, color.color, 1.0, 0);
if (FAILED(hr))
os::Printer::log("DIRECT3D9 clear failed.", ELL_WARNING);
}