mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
i965: check NULL pointer
This commit is contained in:
parent
d913a15898
commit
d859a60dc3
1 changed files with 4 additions and 1 deletions
|
|
@ -247,7 +247,10 @@ brw_wm_get_binding_table(struct brw_context *brw)
|
|||
int i;
|
||||
|
||||
for (i = 0; i < brw->wm.nr_surfaces; i++)
|
||||
data[i] = brw->wm.surf_bo[i]->offset;
|
||||
if (brw->wm.surf_bo[i])
|
||||
data[i] = brw->wm.surf_bo[i]->offset;
|
||||
else
|
||||
data[i] = 0;
|
||||
|
||||
bind_bo = brw_upload_cache( &brw->cache, BRW_SS_SURF_BIND,
|
||||
NULL, 0,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue