[DF-2992] calculate min/max texture index in texture state and use them for iteration during RenderState::Flush