Skip to content

Commit 2daba7b

Browse files
committed
Update DX SDK requirement
1 parent 8058af5 commit 2daba7b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Client/core/DXHook/CDirect3DHook9.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,14 @@ IDirect3D9* CDirect3DHook9::API_Direct3DCreate9(UINT SDKVersion)
8888
}
8989

9090
// D3DX_SDK_VERSION checks
91-
// August 2009 SDK required for shaders to work properly
92-
#if D3DX_SDK_VERSION != 42
91+
// SDK required for shaders to work properly
92+
// Accept the DirectX SDK shipped with August 2009 (42) or June 2010 (43)
93+
#if (D3DX_SDK_VERSION != 42) && (D3DX_SDK_VERSION != 43)
9394
WriteDebugEvent("D3DX_SDK_VERSION incorrect " QUOTE_DEFINE(D3DX_SDK_VERSION));
94-
#pragma message( "WARNING: Microsoft DirectX SDK (August 2009) includes missing" )
95+
#pragma message( "WARNING: Microsoft DirectX SDK (August 2009 or June 2010) includes missing" )
9596
#ifndef CI_BUILD
9697
#ifndef MTA_DEBUG
97-
#error "Microsoft DirectX SDK (August 2009) includes missing"
98+
#error "Microsoft DirectX SDK (August 2009 or June 2010) includes missing"
9899
#endif
99100
#endif
100101
#endif

0 commit comments

Comments
 (0)