mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-01 18:42:40 +00:00
Metal backend, part 9
This commit is contained in:
parent
887b418eae
commit
53d71c798a
1 changed files with 2 additions and 3 deletions
|
@ -114,9 +114,6 @@ void FurnaceGUIRenderMetal::clear(ImVec4 color) {
|
|||
if (priv->cmdBuf) {
|
||||
[priv->cmdBuf release];
|
||||
}
|
||||
if (priv->renderEncoder) {
|
||||
[priv->renderEncoder release];
|
||||
}
|
||||
|
||||
priv->drawable=[priv->context nextDrawable];
|
||||
|
||||
|
@ -158,6 +155,8 @@ void FurnaceGUIRenderMetal::present() {
|
|||
|
||||
[priv->cmdBuf presentDrawable:priv->drawable];
|
||||
[priv->cmdBuf commit];
|
||||
|
||||
[priv->renderEncoder release];
|
||||
}
|
||||
|
||||
bool FurnaceGUIRenderMetal::getOutputSize(int& w, int& h) {
|
||||
|
|
Loading…
Reference in a new issue