diff options
-rw-r--r-- | src/r600_ctx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/r600_ctx.c b/src/r600_ctx.c index 226ac48..12a1b31 100644 --- a/src/r600_ctx.c +++ b/src/r600_ctx.c @@ -69,7 +69,8 @@ static int r600_bof_ctx_new_draw(struct cs_parse *cs) if (draw->state[R600_DB] == NULL) return -ENOMEM; } - draw->state[R600_CB0]->nbo = 3; + if (draw->state[R600_CB0]) + draw->state[R600_CB0]->nbo = 3; if (draw->state[R600_CB1]) draw->state[R600_CB1]->nbo = 3; if (draw->state[R600_CB2]) |