/* D3d9 could set StreamFreq 0 with (INSTANCEDATA or INDEXEDDATA) and then it is handled as 1. See d3d9/tests/visual.c-> stream_test() */
if(stateblock->streamFreq[i]==0){
numInstances=1;
}else{
numInstances=stateblock->streamFreq[i];/* use the specified number of instances from the first matched stream. See d3d9/tests/visual.c-> stream_test() */
}
numInstances=inst;
break;/* break, bacause only the first suitable value is interesting */