diff --git a/src/core/renderer_mtl/renderer_mtl.cpp b/src/core/renderer_mtl/renderer_mtl.cpp index 2e6b0d1f..608d355d 100644 --- a/src/core/renderer_mtl/renderer_mtl.cpp +++ b/src/core/renderer_mtl/renderer_mtl.cpp @@ -126,10 +126,6 @@ void RendererMTL::display() { // Inform the vertex buffer cache that the frame ended vertexBufferCache.endFrame(); drawable->release(); - -#ifdef PANDA3DS_IOS - // metalLayer->autorelease(); -#endif } void RendererMTL::initGraphicsContext(SDL_Window* window) { diff --git a/src/ios_driver.mm b/src/ios_driver.mm index b4b171b0..ed0d46a2 100644 --- a/src/ios_driver.mm +++ b/src/ios_driver.mm @@ -25,20 +25,16 @@ IOS_EXPORT void iosCreateEmulator() { // auto path = emulator->getAppDataRoot() / "Kirb Demo.3ds"; // auto path = emulator->getAppDataRoot() / "Kirb Demo.3ds"; - auto path = emulator->getAppDataRoot() / "SimplerTri.elf"; + auto path = emulator->getAppDataRoot() / "toon_shading.elf"; emulator->loadROM(path); printf("Created emulator\n"); } IOS_EXPORT void iosRunFrame(CAMetalLayer* layer) { printf("Running a frame\n"); - // void* layerBridged = (void*)CFBridgingRetain(layer); void* layerBridged = (__bridge void*)layer; emulator->getRenderer()->setMTKLayer(layerBridged); emulator->runFrame(); - // CFRelease(layerBridged); - - // CFBridgingAutorelease(layerBridged); printf("Ran a frame\n"); } \ No newline at end of file