src/context.c

changeset 15
362b7659dc76
parent 11
d83af80eb09b
child 16
c5dde81b6fb2
equal deleted inserted replaced
14:9dbfc0031887 15:362b7659dc76
26 */ 26 */
27 27
28 #include "ascension/context.h" 28 #include "ascension/context.h"
29 #include "ascension/error.h" 29 #include "ascension/error.h"
30 #include "ascension/utils.h" 30 #include "ascension/utils.h"
31 #include "ascension/shader.h"
31 32
32 #include <cx/linked_list.h> 33 #include <cx/linked_list.h>
33 34
34 #include <SDL2/SDL.h> 35 #include <SDL2/SDL.h>
35 #include <SDL2/SDL_ttf.h> 36 #include <SDL2/SDL_ttf.h>
62 asc_set_flag(&asc_context.flags, ASC_FLAG_INITILIZED); 63 asc_set_flag(&asc_context.flags, ASC_FLAG_INITILIZED);
63 asc_dprintf("Ascension context initialized."); 64 asc_dprintf("Ascension context initialized.");
64 } 65 }
65 66
66 void asc_context_destroy(void) { 67 void asc_context_destroy(void) {
67 // destroy data 68 asc_shader_destroy_predefined();
68 for (unsigned int i = 0 ; i < ASC_MAX_WINDOWS ; i++) { 69 for (unsigned int i = 0 ; i < ASC_MAX_WINDOWS ; i++) {
69 asc_window_destroy(&asc_context.windows[i]); 70 asc_window_destroy(&asc_context.windows[i]);
70 } 71 }
71 asc_font_cache_clear(); 72 asc_font_cache_clear();
72 73

mercurial