[PATCH 1/4] d3d9: Correctly check for sysmem index buffers in d3d9_stateblock_Apply().