Metal backend, part 15

This commit is contained in:
tildearrow 2024-04-15 12:46:47 -05:00
parent e1bb42fba9
commit a9cc805fac

View file

@ -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;
}