Matteo Bruni : d3d8: Fix texture stage index checks.