From: Dave Airlie Date: Fri, 18 Apr 2008 05:37:54 +0000 (+1000) Subject: i965: fixup depth buffer check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=27e06a52342b94b4fb1d60a57c3bdaa2b30607cf;p=mesa.git i965: fixup depth buffer check --- diff --git a/src/mesa/drivers/dri/i965/brw_misc_state.c b/src/mesa/drivers/dri/i965/brw_misc_state.c index ec0bd6b22cc..26ec797b5fd 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); }