Bug 1074272 - Use exception mode 0 for our D3D11 devices. r=jrmuizel, a=sledru
authorBas Schouten <bschouten@mozilla.com>
Mon, 29 Sep 2014 09:51:00 -0400
changeset 225701 46d2991042df
parent 225700 184bc1bea651
child 225702 e6441f98f159
push id3987
push userryanvm@gmail.com
push date2014-10-16 14:34 +0000
treeherdermozilla-beta@1f7f807b6362 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel, sledru
bugs1074272
milestone34.0
Bug 1074272 - Use exception mode 0 for our D3D11 devices. r=jrmuizel, a=sledru
gfx/thebes/gfxWindowsPlatform.cpp
--- a/gfx/thebes/gfxWindowsPlatform.cpp
+++ b/gfx/thebes/gfxWindowsPlatform.cpp
@@ -1390,16 +1390,20 @@ gfxWindowsPlatform::GetD3D11Device()
                                  D3D11_CREATE_DEVICE_BGRA_SUPPORT,
                                  featureLevels.Elements(), featureLevels.Length(),
                                  D3D11_SDK_VERSION, byRef(mD3D11Device), nullptr, nullptr);
 
   // We leak these everywhere and we need them our entire runtime anyway, let's
   // leak it here as well.
   d3d11Module.disown();
 
+  if (SUCCEEDED(hr)) {
+    mD3D11Device->SetExceptionMode(0);
+  }
+
   return mD3D11Device;
 }
 
 ReadbackManagerD3D11*
 gfxWindowsPlatform::GetReadbackManager()
 {
   if (!mD3D11ReadbackManager) {
     mD3D11ReadbackManager = new ReadbackManagerD3D11();