From 1eca5d0b8f1adf04ca2827733430046c24bb7050 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Tue, 22 Dec 2020 23:21:17 -0400 Subject: [PATCH] metal: don't try to autogenerate depth mips, that isn't supported --- src/modules/graphics/metal/Graphics.mm | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/modules/graphics/metal/Graphics.mm b/src/modules/graphics/metal/Graphics.mm index 0c379a911..9239db0bf 100644 --- a/src/modules/graphics/metal/Graphics.mm +++ b/src/modules/graphics/metal/Graphics.mm @@ -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)