Allow command buffer to be expanded (#1297)

This commit is contained in:
Guldoman
2023-08-19 12:28:18 +08:00
committed by takase1121
parent 0fa0a59c8b
commit bd4e64cc7e
2 changed files with 39 additions and 8 deletions
+5
View File
@@ -507,8 +507,13 @@ void ren_draw_rect(RenRect rect, RenColor color) {
/*************** Window Management ****************/
void ren_free_window_resources() {
extern uint8_t *command_buf;
extern size_t command_buf_size;
renwin_free(&window_renderer);
SDL_FreeSurface(draw_rect_surface);
free(command_buf);
command_buf = NULL;
command_buf_size = 0;
}
void ren_init(SDL_Window *win) {