[PATCH 3/6] d3d8: Retrieve textures from the primary stateblock.