summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mesa/state_tracker/st_cb_clear.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/state_tracker/st_cb_clear.c b/src/mesa/state_tracker/st_cb_clear.c
index f24ddb9a288..0fb1d332b04 100644
--- a/src/mesa/state_tracker/st_cb_clear.c
+++ b/src/mesa/state_tracker/st_cb_clear.c
@@ -170,10 +170,9 @@ set_vertex_shader(struct st_context *st)
} else {
const enum tgsi_semantic semantic_names[] = {
TGSI_SEMANTIC_POSITION,
- TGSI_SEMANTIC_GENERIC
};
- const uint semantic_indexes[] = { 0, 0 };
- st->clear.vs = util_make_vertex_passthrough_shader(st->pipe, 2,
+ const uint semantic_indexes[] = { 0 };
+ st->clear.vs = util_make_vertex_passthrough_shader(st->pipe, 1,
semantic_names,
semantic_indexes,
FALSE);