diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/gen8_surface_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/gen8_surface_state.c b/src/mesa/drivers/dri/i965/gen8_surface_state.c index 27a1ff090cc..d564449a7cf 100644 --- a/src/mesa/drivers/dri/i965/gen8_surface_state.c +++ b/src/mesa/drivers/dri/i965/gen8_surface_state.c @@ -313,7 +313,7 @@ gen8_update_renderbuffer_surface(struct brw_context *brw, depth *= 6; break; case GL_TEXTURE_3D: - depth = MAX2(rb->Depth, 1); + depth = MAX2(irb->mt->logical_depth0, 1); /* fallthrough */ default: surf_type = translate_tex_target(gl_target); |