diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_atom_array.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_atom_array.c b/src/mesa/state_tracker/st_atom_array.c index 56b8019a36f..0847184d74d 100644 --- a/src/mesa/state_tracker/st_atom_array.c +++ b/src/mesa/state_tracker/st_atom_array.c @@ -567,8 +567,12 @@ setup_non_interleaved_attribs(struct st_context *st, unsigned src_format; array = get_client_array(vp, arrays, attr); - if (!array) + if (!array) { + vbuffer[attr].buffer = NULL; + vbuffer[attr].user_buffer = NULL; + vbuffer[attr].buffer_offset = 0; continue; + } stride = array->StrideB; bufobj = array->BufferObj; |