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