From a9cc805fac6170c244709856878b839eabf067b2 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 15 Apr 2024 12:46:47 -0500 Subject: [PATCH] Metal backend, part 15 --- src/gui/render/renderMetal.mm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/render/renderMetal.mm b/src/gui/render/renderMetal.mm index 467303f87..410e47585 100644 --- a/src/gui/render/renderMetal.mm +++ b/src/gui/render/renderMetal.mm @@ -19,7 +19,6 @@ // TODO: // - wipe -// - textures // - maybe fix VSync #include "renderMetal.h" @@ -101,12 +100,16 @@ FurnaceGUITexture* FurnaceGUIRenderMetal::createTexture(bool dynamic, int width, ret->tex=texture; ret->width=width; ret->height=height; + + [texDesc release]; + return ret; } bool FurnaceGUIRenderMetal::destroyTexture(FurnaceGUITexture* which) { FurnaceMetalTexture* t=(FurnaceMetalTexture*)which; [t->tex release]; + t->tex=NULL; delete t; return true; }