965: fix vb upload size check

This commit is contained in:
Dave Airlie 2008-04-18 15:09:11 +10:00
parent e149e1b953
commit e92e3848e7
1 changed files with 5 additions and 3 deletions

View File

@ -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;
}