Skip to content

Commit

Permalink
Merge branch 'textures' of github.com:ys-zm/cub3d into textures
Browse files Browse the repository at this point in the history
  • Loading branch information
Joppe Boeve committed Jan 17, 2024
2 parents a108cc0 + 4436119 commit 95eda53
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN_CMD := ./$(NAME) test_maps/valid_tex.cub

# CFLAGS += -Wall -Wextra -Werror
CFLAGS += -Wall -Wextra
# CFLAGS += -g -fsanitize=address
CFLAGS += -g -fsanitize=address
# CFLAGS += -g
# CFLAGS += -Ofast -flto -march=native

Expand Down
6 changes: 5 additions & 1 deletion src/utils/free.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: yzaim <[email protected]> +#+ */
/* +#+ */
/* Created: 2024/01/08 15:53:55 by yzaim #+# #+# */
/* Updated: 2024/01/08 15:55:28 by yzaim ######## odam.nl */
/* Updated: 2024/01/17 16:13:14 by yzaim ######## odam.nl */
/* */
/* ************************************************************************** */

Expand All @@ -18,6 +18,10 @@ static void free_t_tex(t_attr *attributes)
free(attributes->s.tex_path);
free(attributes->e.tex_path);
free(attributes->w.tex_path);
mlx_delete_texture(attributes->n.tex);
mlx_delete_texture(attributes->s.tex);
mlx_delete_texture(attributes->e.tex);
mlx_delete_texture(attributes->w.tex);
}

void meta_free(t_meta *meta)
Expand Down

0 comments on commit 95eda53

Please sign in to comment.