diff options
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_fbo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_fbo.c b/src/mesa/drivers/dri/i965/intel_fbo.c index 7bee792c04d..939f9a08c58 100644 --- a/src/mesa/drivers/dri/i965/intel_fbo.c +++ b/src/mesa/drivers/dri/i965/intel_fbo.c @@ -538,7 +538,7 @@ intel_renderbuffer_update_wrapper(struct brw_context *brw, if (!layered) { irb->layer_count = 1; - } else if (image->TexObject->NumLayers > 0) { + } else if (mt->target != GL_TEXTURE_3D && image->TexObject->NumLayers > 0) { irb->layer_count = image->TexObject->NumLayers; } else { irb->layer_count = mt->level[level].depth / layer_multiplier; |