From 27e06a52342b94b4fb1d60a57c3bdaa2b30607cf Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 18 Apr 2008 15:37:54 +1000 Subject: i965: fixup depth buffer check --- src/mesa/drivers/dri/i965/brw_misc_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.3