void say_window_free(say_window *win) { say_window_close(win); say_target_free(win->target); say_imp_window_free(win->win); free(win); }
void say_image_target_free(say_image_target *target) { say_context_ensure(); say_image_target_will_delete(target->fbo, target->rbo); glDeleteRenderbuffersEXT(1, &(target->rbo)); glDeleteFramebuffersEXT(1, &(target->fbo)); say_target_free(target->target); free(target); }