diff --git a/render.c b/render.c index abb213d..2619f0b 100644 --- a/render.c +++ b/render.c @@ -21,7 +21,7 @@ options_t options = { .antialias = 0 }; // todo, dynamic, both of these #define R_MAX_VERTS (1024 * 128 * 64) -#define R_MAX_LIGHT_V3 64 +#define R_MAX_LIGHT_V3 32 * 2 // god forgive me #define STR_PREP(x) #x diff --git a/text.c b/text.c index 44b24f1..680ed98 100644 --- a/text.c +++ b/text.c @@ -91,10 +91,10 @@ void text_init() { // this is kinda goofy, but alright font_sm_rw = SDL_RWFromMem((void *)data_terminess_font, data_terminess_font_len); font_sm = TTF_OpenFontRW(font_sm_rw, 0, 12); - font_md_rw = SDL_RWFromMem((void *)data_terminess_font, data_terminess_font_len); - font_md = TTF_OpenFontRW(font_md_rw, 0, 18); - font_lg_rw = SDL_RWFromMem((void *)data_terminess_font, data_terminess_font_len); - font_lg = TTF_OpenFontRW(font_lg_rw, 0, 32); + font_sm_rw = SDL_RWFromMem((void *)data_terminess_font, data_terminess_font_len); + font_md = TTF_OpenFontRW(font_sm_rw, 0, 18); + font_sm_rw = SDL_RWFromMem((void *)data_terminess_font, data_terminess_font_len); + font_lg = TTF_OpenFontRW(font_sm_rw, 0, 32); // Create a shader program and get the attribute and uniform locations GLuint vertex_shader = r_compile_shader( @@ -274,6 +274,6 @@ void text_quit() { TTF_CloseFont(font_md); TTF_CloseFont(font_lg); SDL_FreeRW(font_sm_rw); - SDL_FreeRW(font_md_rw); - SDL_FreeRW(font_lg_rw); + // SDL_FreeRW(font_md_rw); + // SDL_FreeRW(font_lg_rw); }