From 5fc2f3db51c8f34aaa1d65bad1f02883fb73d348 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 20 Jan 2018 07:04:21 +0100 Subject: [PATCH] Add HAVE_D3DX ifdefs --- gfx/common/d3d_common.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/gfx/common/d3d_common.c b/gfx/common/d3d_common.c index 642957d466..f828e4fbd7 100644 --- a/gfx/common/d3d_common.c +++ b/gfx/common/d3d_common.c @@ -29,12 +29,30 @@ #include "d3d_common.h" +#ifdef HAVE_D3DX + #if defined(HAVE_D3D9) + +#ifdef _XBOX +#include +#include +#else #include "../include/d3d9/d3dx9tex.h" +#endif + #elif defined(HAVE_D3D8) + +#ifdef _XBOX +#include +#include +#else #include "../include/d3d8/d3dx8tex.h" #endif +#endif + +#endif + #ifdef _XBOX #include #endif