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 216896 3f58f21ebcf6
parent 216895 c45a0f90b53e
child 216897 a4529d1ee29c
push id3959
push userryanvm@gmail.com
push date2014-10-01 19:28 +0000
treeherdermozilla-beta@6326278b28ac [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel, sledru
bugs1074272
milestone33.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
@@ -1389,16 +1389,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;
 }
 
 bool
 gfxWindowsPlatform::IsOptimus()
 {
     static int knowIsOptimus = -1;
     if (knowIsOptimus == -1) {