[PATCH v2 1/6] d3d9: Retrieve textures from the primary stateblock.