[PATCH 1/5] d3d8: Fix texture stage index checks.