[PATCH 5/6] d3d9: Retrieve texture states from the primary stateblock.