Game Development Community

Multiple D3DX9 dlls

by Jaimi McEntire · in Torque Game Engine Advanced · 03/17/2009 (5:53 pm) · 4 replies

The 1.8 distribution carries two different versions of the D3DX9 DLL: d3dx9_31.dll and d3dx9_33.dll. Do we need both of these?

#1
03/18/2009 (9:54 am)
Yes you do. Microsoft decided to change the HLSL compiler (and change it again... and again...) in D3DX, which broke a number of things (e.g. 1.x shaders, some 2.x shaders, etc.). The d3dx9_31 dll contains the "Legacy" shader compiler, which will properly compile 1.x and 2.x shaders. TGEA will also load the most recent dll to take advantage of fixes to other areas.
#2
03/18/2009 (11:43 am)
Thanks, Alex. Just trying to trim size from my downloads. :(
#3
03/18/2009 (12:58 pm)
If the user has the latest SDK installed, you don't need these.

I was under the impression they were illegal to ship outside the Redistributable, though.
#4
03/18/2009 (2:50 pm)
@Stefan - It's OK to strip it to nothing now, and just include the setup and d3dx cabs. The following (and whatever libs you want) are the only required files:

DSetup32.dll
DSetup.dll
DXSetup.exe
DXupdate.cab
dxdllreg_x86.cab