Metal backend, part 2

This commit is contained in:
tildearrow 2024-04-12 00:10:44 -05:00
parent bd676bde64
commit fe2cf4b508

View file

@ -102,7 +102,7 @@ void FurnaceGUIRenderMetal::clear(ImVec4 color) {
priv->cmdBuf=[priv->cmdQueue commandBuffer];
priv->renderPass.colorAttachments[0].clearColor=MTLClearColorMake(color.x,color.y,color.z,color.w);
priv->renderPass.colorAttachments[0].texture=drawable.texture;
priv->renderPass.colorAttachments[0].texture=priv->drawable.texture;
priv->renderPass.colorAttachments[0].loadAction=MTLLoadActionClear;
priv->renderPass.colorAttachments[0].storeAction=MTLStoreActionStore;
priv->renderEncoder=[commandBuffer renderCommandEncoderWithDescriptor:renderPassDescriptor];