Zebediah Figura : d3d9: Retrieve texture states from the primary stateblock.