Skip to content

Commit f435158

Browse files
committed
Improve dx_guids.c - only pull in dxgi for DX10/11/12
1 parent 77a8f8f commit f435158

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

gfx/common/dx_guids.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,16 @@
4848
#ifdef HAVE_D3D8
4949
#include <d3d8.h>
5050
#endif
51-
#if defined(HAVE_D3D9) || defined(HAVE_D3D10) \
52-
|| defined(HAVE_D3D11) || defined(HAVE_D3D12)
51+
52+
#if defined(HAVE_D3D10) || defined(HAVE_D3D11) || defined(HAVE_D3D12) \
53+
|| (defined(HAVE_D3D9) && defined(HAVE_HLSL))
5354
#include <d3dcompiler.h>
55+
#endif
56+
57+
#if defined(HAVE_D3D10) || defined(HAVE_D3D11) || defined(HAVE_D3D12)
5458
#include <dxgi.h>
5559
#endif
60+
5661
#ifdef HAVE_DINPUT
5762
#include <dinput.h>
5863
#endif

0 commit comments

Comments
 (0)