diff --git a/src/compiler/nir/nir_gs_count_vertices.c b/src/compiler/nir/nir_gs_count_vertices.c index 23a3437c480..176b813b80a 100644 --- a/src/compiler/nir/nir_gs_count_vertices.c +++ b/src/compiler/nir/nir_gs_count_vertices.c @@ -105,7 +105,7 @@ nir_gs_count_vertices_and_primitives(const nir_shader *shader, if (cnt_found[stream] && prmcnt != prmcnt_arr[stream]) prmcnt = -1; if (cnt_found[stream] && decomposed_prmcnt != decomposed_prmcnt_arr[stream]) - prmcnt = -1; + decomposed_prmcnt = -1; vtxcnt_arr[stream] = vtxcnt; prmcnt_arr[stream] = prmcnt;