twn_gl_15_rendering.c: fix memory leak in finally_render_skybox()

This commit is contained in:
veclav talica 2024-10-01 13:22:20 +03:00
parent 8c34d5afe2
commit 9ab7d1edff

View File

@ -502,7 +502,8 @@ void finally_render_skybox(char *paths) {
SDL_free(paths_cache); SDL_free(paths_cache);
paths_cache = paths; paths_cache = paths;
loading_needed = true; loading_needed = true;
} } else
SDL_free(paths);
Matrix4 camera_look_at_matrix_solipsist = camera_look_at_matrix; Matrix4 camera_look_at_matrix_solipsist = camera_look_at_matrix;
camera_look_at_matrix_solipsist.row[3].x = 0; camera_look_at_matrix_solipsist.row[3].x = 0;