diff options
Diffstat (limited to 'src/mesa')
-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 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); } |