From e92e3848e7c8c1481e785973d8609072f2f5db21 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 18 Apr 2008 15:09:11 +1000 Subject: [PATCH] 965: fix vb upload size check --- src/mesa/drivers/dri/i965/brw_draw_upload.c | 8 +++++--- 1 file 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; } -- 2.30.2