Metal backend, part 15
This commit is contained in:
parent
e1bb42fba9
commit
a9cc805fac
|
@ -19,7 +19,6 @@
|
||||||
|
|
||||||
// TODO:
|
// TODO:
|
||||||
// - wipe
|
// - wipe
|
||||||
// - textures
|
|
||||||
// - maybe fix VSync
|
// - maybe fix VSync
|
||||||
|
|
||||||
#include "renderMetal.h"
|
#include "renderMetal.h"
|
||||||
|
@ -101,12 +100,16 @@ FurnaceGUITexture* FurnaceGUIRenderMetal::createTexture(bool dynamic, int width,
|
||||||
ret->tex=texture;
|
ret->tex=texture;
|
||||||
ret->width=width;
|
ret->width=width;
|
||||||
ret->height=height;
|
ret->height=height;
|
||||||
|
|
||||||
|
[texDesc release];
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool FurnaceGUIRenderMetal::destroyTexture(FurnaceGUITexture* which) {
|
bool FurnaceGUIRenderMetal::destroyTexture(FurnaceGUITexture* which) {
|
||||||
FurnaceMetalTexture* t=(FurnaceMetalTexture*)which;
|
FurnaceMetalTexture* t=(FurnaceMetalTexture*)which;
|
||||||
[t->tex release];
|
[t->tex release];
|
||||||
|
t->tex=NULL;
|
||||||
delete t;
|
delete t;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue