mirror of https://github.com/bjornbytes/lovr.git
Fix Canvas depth buffer mipmap generation;
This commit is contained in:
parent
6c9531564e
commit
03df236e63
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue