fix crash when closing platform popups
This commit is contained in:
@@ -80,11 +80,12 @@ void popup_close(PopupWindow *popup) {
|
||||
if (popup->open_flag)
|
||||
*popup->open_flag = 0;
|
||||
|
||||
popup->alive = 0;
|
||||
platform_set_frame_callback(popup->platform_window, nullptr, nullptr);
|
||||
|
||||
ui_destroy(popup->ui_ctx);
|
||||
renderer_destroy(popup->renderer);
|
||||
platform_destroy_window(popup->platform_window);
|
||||
|
||||
popup->alive = 0;
|
||||
}
|
||||
|
||||
void popup_do_frame(PopupWindow *popup, F32 dt) {
|
||||
|
||||
Reference in New Issue
Block a user