diff --git a/src/mesa/main/blit.c b/src/mesa/main/blit.c index e15ddfb718f..e8833d39e37 100644 --- a/src/mesa/main/blit.c +++ b/src/mesa/main/blit.c @@ -532,7 +532,8 @@ do_blit_framebuffer(struct gl_context *ctx, blit.src.resource = srcObj->pt; blit.src.level = srcAtt->TextureLevel; - blit.src.box.z = srcAtt->Zoffset + srcAtt->CubeMapFace; + blit.src.box.z = srcAtt->Zoffset + srcAtt->CubeMapFace + + srcAtt->Texture->Attrib.MinLayer; blit.src.format = srcObj->surface_based ? srcObj->surface_format : srcObj->pt->format; if (!ctx->Color.sRGBEnabled)