Fix Canvas depth buffer mipmap generation;

This commit is contained in:
bjorn 2022-03-25 13:12:18 -07:00
parent 6c9531564e
commit 03df236e63
1 changed files with 5 additions and 0 deletions

View File

@ -2090,6 +2090,11 @@ void lovrCanvasResolve(Canvas* canvas) {
glGenerateMipmap(texture->target);
}
}
if (canvas->flags.depth.enabled && canvas->flags.depth.readable) {
lovrGpuBindTexture(canvas->depth.texture, 0);
glGenerateMipmap(canvas->depth.texture->target);
}
}
canvas->needsResolve = false;