Fix resetting of non-existing device

TRAC #18139 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@750 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent a866244f
#define MAJOR_VERSION 0
#define MINOR_VERSION 0
#define BUILD_VERSION 0
#define BUILD_REVISION 749
#define BUILD_REVISION 750
#define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x)
......
......@@ -775,10 +775,12 @@ bool Display::isDeviceLost()
{
return FAILED(mDeviceEx->CheckDeviceState(NULL));
}
else
else if(mDevice)
{
return FAILED(mDevice->TestCooperativeLevel());
}
return false; // No device yet, so no reset required
}
void Display::getMultiSampleSupport(D3DFORMAT format, bool *multiSampleArray)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment