I added:
and the result is:s32 er = pID3DDevice->Reset(&present);
switch ( er)
{
case D3DERR_DEVICELOST: os::Printer::log("The device has been lost but cannot be reset at this time. Therefore, rendering is not possible. ", ELL_WARNING);
break;
case D3DERR_DRIVERINTERNALERROR:os::Printer::log("Internal driver error. Applications should generally shut down when receiving this error. For more information, see Driver Internal Errors.", ELL_WARNING);
break;
case D3DERR_INVALIDCALL: os::Printer::log("he method call is invalid. For example, a method's parameter may have an invalid value.", ELL_WARNING);
break;
case D3DERR_OUTOFVIDEOMEMORY: os::Printer::log("Direct3D does not have enough display memory to perform the operation. ", ELL_WARNING);
break;
case E_OUTOFMEMORY: os::Printer::log("Resetting no mem.", ELL_WARNING);
break;
}
return false;
}
he method call is invalid. For example, a method's parameter may have an invalid value
But i think the parameters are OK... because they are the one with what the device was created ...