Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
computermouth committed May 9, 2024
1 parent 1473517 commit 039d0d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion render.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions text.c
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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);
}

0 comments on commit 039d0d8

Please sign in to comment.