Bug 1083624 - Fix assertion failure in Factory::GetDirect3D10Device(). r=bas.

--HG--
extra : rebase_source : e28b1575b8bd4706d7d203696a1280c76e103ef6
This commit is contained in:
Nicholas Nethercote 2014-10-16 19:02:51 -07:00
parent 012dfb0c0a
commit 99692aa836

View File

@ -548,11 +548,12 @@ Factory::SetDirect3D10Device(ID3D10Device1 *aDevice)
ID3D10Device1*
Factory::GetDirect3D10Device()
{
#ifdef DEBUG
UINT mode = mD3D10Device->GetExceptionMode();
MOZ_ASSERT(0 == mode);
if (mD3D10Device) {
UINT mode = mD3D10Device->GetExceptionMode();
MOZ_ASSERT(0 == mode);
}
#endif
return mD3D10Device;
}