diff options
author | Matt Turner <[email protected]> | 2013-06-27 11:18:36 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2013-06-29 15:21:29 -0700 |
commit | 18a04f50de1b7da9663ebbb73380f2fced223b1e (patch) | |
tree | c8de9147801edfc0dc3cc69fa01287dd7093f47b /src | |
parent | bf8053a2dbac1500586d6d387cd88c30aad63a60 (diff) |
i965: NULL check depth_mt to quiet static analysis.
Reviewed-by: Chad Versace <[email protected]>
(cherry picked from commit adf8afa168fe9fe2e4a2b35afc3003040d05273f)
Diffstat (limited to 'src')
-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 0fd167e3291..4231c8db92f 100644 --- a/src/mesa/drivers/dri/i965/brw_misc_state.c +++ b/src/mesa/drivers/dri/i965/brw_misc_state.c @@ -575,7 +575,7 @@ brw_emit_depthbuffer(struct brw_context *brw) depth_mt = stencil_mt; } - if (depth_irb) { + if (depth_irb && depth_mt) { struct intel_region *region = depth_mt->region; /* When 3DSTATE_DEPTH_BUFFER.Separate_Stencil_Enable is set, then |