diff -r 84472fb3adbd -r cfa1d05754ac src/window.c --- a/src/window.c Thu Aug 15 17:33:42 2024 +0200 +++ b/src/window.c Sun Oct 06 19:43:08 2024 +0200 @@ -56,7 +56,7 @@ } if (window->ui != NULL) { asc_dprintf("Window with index %u has a dangling UI pointer", index); - asc_scene_node_free(window->ui); + asc_scene_destroy(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_node_empty(); + window->ui = asc_scene_create(); 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_node_free(window->ui); + asc_scene_destroy(window->ui); window->ui = NULL; // release context related data