Code that previously worked fine, now emitts error after presenting drawable:func draw() {
...
mainCommandBuffer.present(currentDrawable)
mainCommandBuffer.commit()
}EXC_BAD_ACCESS on [CAMetalDrawable present]with log error message:[CAMetalLayerDrawable texture] should not be called after presenting the drawable.There is no other info, and I have no idea what to try to fix. I'm no not calling "texture" after presenting drawable, it is last line in the method.Does someone have a clue?Thanks
11
0
3.7k