Henri Verbeet : d3d9: Don't test invalid texture stages.