diff options
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_draw_upload.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw_upload.c b/src/mesa/drivers/dri/i965/brw_draw_upload.c index 9f780bcb97c..78677df6c0a 100644 --- a/src/mesa/drivers/dri/i965/brw_draw_upload.c +++ b/src/mesa/drivers/dri/i965/brw_draw_upload.c @@ -418,9 +418,11 @@ int brw_prepare_vertices( struct brw_context *brw, } } - ret = dri_bufmgr_check_aperture_space(brw->vb.upload.bo); - if (ret) - return 1; + if (brw->vb.upload.bo) { + ret = dri_bufmgr_check_aperture_space(brw->vb.upload.bo); + if (ret) + return 1; + } return 0; } |