diff options
author | Jerome Glisse <[email protected]> | 2010-12-21 10:49:53 -0500 |
---|---|---|
committer | Jerome Glisse <[email protected]> | 2010-12-21 10:51:32 -0500 |
commit | fa62cf7450595b3d99259b5a212df301ca711d4b (patch) | |
tree | fd0c6bc47175b6a5a794393e36b4b4b481daf7be /src/gallium/drivers/r600/evergreen_state.c | |
parent | 8b9570e685f010745e2dfb1bff00d555e2e5f6ba (diff) |
r600g: avoid segfault
Candidates 7.10
Signed-off-by: Jerome Glisse <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/evergreen_state.c')
-rw-r--r-- | src/gallium/drivers/r600/evergreen_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/evergreen_state.c b/src/gallium/drivers/r600/evergreen_state.c index af19beb6f3c..8a69a10fc80 100644 --- a/src/gallium/drivers/r600/evergreen_state.c +++ b/src/gallium/drivers/r600/evergreen_state.c @@ -1334,7 +1334,7 @@ void evergreen_vertex_buffer_update(struct r600_pipe_context *rctx) rbuffer = (struct r600_resource*)vertex_buffer->buffer; offset = 0; } - if (vertex_buffer == NULL) + if (vertex_buffer == NULL || rbuffer == NULL) continue; offset += vertex_buffer->buffer_offset + r600_bo_offset(rbuffer->bo); |