mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-25 22:15:14 +00:00
Metal backend, part 15
This commit is contained in:
parent
e1bb42fba9
commit
a9cc805fac
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue