diff options
author | Dave Airlie <airlied@panoply-rh.(none)> | 2008-04-18 15:37:54 +1000 |
---|---|---|
committer | Dave Airlie <airlied@panoply-rh.(none)> | 2008-04-18 15:37:54 +1000 |
commit | 27e06a52342b94b4fb1d60a57c3bdaa2b30607cf (patch) | |
tree | 3d399829b8d8fbb9333752c7dac82d5cc47bc504 | |
parent | fda4895d26eec6d810da51a6c023a5459230ff6a (diff) |
i965: fixup depth buffer check
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_misc_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_misc_state.c b/src/mesa/drivers/dri/i965/brw_misc_state.c index ec0bd6b22c..26ec797b5f 100644 --- a/src/mesa/drivers/dri/i965/brw_misc_state.c +++ b/src/mesa/drivers/dri/i965/brw_misc_state.c @@ -183,7 +183,7 @@ static int prepare_depthbuffer(struct brw_context *brw) { struct intel_region *region = brw->state.depth_region; - if (region->buffer) + if (!region || !region->buffer) return 0; return dri_bufmgr_check_aperture_space(region->buffer); } |