d3d8: Store the texture's parent device as a d3d8_device pointer.