Only copy this value when in restart drawing mode.
Eliminates valgrind errors when running trivial programs.
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
}
struct swr_vertex_element_state *velems = ctx->velems;
- velems->fsState.cutIndex = info->restart_index;
+ if (info->primitive_restart)
+ velems->fsState.cutIndex = info->restart_index;
+ else
+ velems->fsState.cutIndex = 0;
velems->fsState.bEnableCutIndex = info->primitive_restart;
velems->fsState.bPartialVertexBuffer = (info->min_index > 0);