summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mesa/state_tracker/st_draw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c
index 20ba993800a..a2bff044eea 100644
--- a/src/mesa/state_tracker/st_draw.c
+++ b/src/mesa/state_tracker/st_draw.c
@@ -657,6 +657,8 @@ handle_fallback_primitive_restart(struct pipe_context *pipe,
else {
ptr = ib->ptr;
}
+ } else {
+ ptr = NULL;
}
if (!ptr)