mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-19 08:28:21 +02:00
asahi: Fix segfault with null drawbuffer
Fixes fbo-drawbuffers-none piglit. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20569>
This commit is contained in:
parent
9b67afb55d
commit
615c3a078b
1 changed files with 2 additions and 1 deletions
|
|
@ -70,7 +70,8 @@ agx_batch_init(struct agx_context *ctx,
|
|||
}
|
||||
|
||||
for (unsigned i = 0; i < key->nr_cbufs; ++i) {
|
||||
agx_batch_writes(batch, agx_resource(key->cbufs[i]->texture));
|
||||
if (key->cbufs[i])
|
||||
agx_batch_writes(batch, agx_resource(key->cbufs[i]->texture));
|
||||
}
|
||||
|
||||
unsigned batch_idx = agx_batch_idx(batch);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue