61 asc_set_flag(&asc_context.flags, ASC_FLAG_INITILIZED); |
61 asc_set_flag(&asc_context.flags, ASC_FLAG_INITILIZED); |
62 asc_dprintf("Ascension context initialized."); |
62 asc_dprintf("Ascension context initialized."); |
63 } |
63 } |
64 |
64 |
65 void asc_context_destroy(void) { |
65 void asc_context_destroy(void) { |
66 asc_shader_destroy_predefined(); |
|
67 for (unsigned int i = 0 ; i < ASC_MAX_WINDOWS ; i++) { |
66 for (unsigned int i = 0 ; i < ASC_MAX_WINDOWS ; i++) { |
68 asc_window_destroy(&asc_context.windows[i]); |
67 asc_window_destroy(&asc_context.windows[i]); |
69 } |
68 } |
70 asc_font_cache_clear(); |
69 asc_font_cache_clear(); |
71 |
70 |