--- a/src/window.c Sun Oct 06 19:45:34 2024 +0200 +++ b/src/window.c Sun Oct 06 20:49:43 2024 +0200 @@ -56,7 +56,7 @@ } if (window->ui != NULL) { asc_dprintf("Window with index %u has a dangling UI pointer", index); - asc_scene_destroy(window->ui); + asc_scene_node_free(window->ui); } Uint32 flags = SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN; @@ -83,7 +83,7 @@ window->resized = true; // count initial sizing as resize if (asc_gl_context_initialize(&window->glctx, window->window, &settings->glsettings)) { - window->ui = asc_scene_create(); + window->ui = asc_scene_node_empty(); asc_dprintf("Window %u initialized", window->id); asc_context.active_window = index; } else { @@ -111,7 +111,7 @@ asc_gl_context_activate(&window->glctx); // destroy all scenes - asc_scene_destroy(window->ui); + asc_scene_node_free(window->ui); window->ui = NULL; // release context related data