From: Dave Airlie Date: Fri, 18 Apr 2008 05:09:11 +0000 (+1000) Subject: 965: fix vb upload size check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e92e3848e7c8c1481e785973d8609072f2f5db21;p=mesa.git 965: fix vb upload size check --- 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; }