Bug 801460 - IDXGIFactory2 not declared build errors with --enable-metro. r=bas.schouten
authorOleg Romashin <romaxa@gmail.com>
Sun, 14 Oct 2012 23:19:13 -0700
changeset 110413 9c8ea48a797515a462202f1d2c969c5f3705502a
parent 110412 8c6f15a776956da96b9a684dc7d9472a7a432f8d
child 110414 8e24562328a9c6286f8fbc2c5c5c4c8c2220df04
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewersbas
bugs801460
milestone19.0a1
Bug 801460 - IDXGIFactory2 not declared build errors with --enable-metro. r=bas.schouten
gfx/layers/d3d10/LayerManagerD3D10.cpp
--- a/gfx/layers/d3d10/LayerManagerD3D10.cpp
+++ b/gfx/layers/d3d10/LayerManagerD3D10.cpp
@@ -20,16 +20,19 @@
 #include "ReadbackLayerD3D10.h"
 #include "ImageLayerD3D10.h"
 #include "mozilla/layers/PLayerChild.h"
 #include "mozilla/WidgetUtils.h"
 
 #include "../d3d9/Nv3DVUtils.h"
 
 #include "gfxCrashReporterUtils.h"
+#ifdef MOZ_METRO
+#include "DXGI1_2.h"
+#endif
 
 using namespace std;
 using namespace mozilla::gfx;
 
 namespace mozilla {
 namespace layers {
 
 typedef HRESULT (WINAPI*D3D10CreateEffectFromMemoryFunc)(