The code is i believe for the Dx8 version of the engine, to convert this Dx9 you may need to make some simple changes, unfortunately i don't what changes are needed for fixed function effects. Maybe someone else