metal: don't try to autogenerate depth mips, that isn't supported

This commit is contained in:
Alex Szpakowski
2020-12-22 23:21:17 -04:00
parent 47ea32781a
commit 1eca5d0b8f
-4
View File
@@ -958,10 +958,6 @@ void Graphics::endPass()
if (rt.texture->getMipmapsMode() == Texture::MIPMAPS_AUTO && rt.mipmap == 0)
rt.texture->generateMipmaps();
}
int dsmipmap = rts.depthStencil.mipmap;
if (depthstencil != nullptr && depthstencil->getMipmapsMode() == Texture::MIPMAPS_AUTO && dsmipmap == 0)
depthstencil->generateMipmaps();
}
void Graphics::clear(OptionalColorf c, OptionalInt stencil, OptionalDouble depth)