Major overhaul to texture management, first DX9 textures are working.