Clean up DirectX texture management

.. so that it now uses the same system that the OpenGL driver uses.
Merge branch 'master' of github.com:benharper123/nudom