From 6ec72db2d497eabffd3be552a9b23bdbf496af34 Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Thu, 1 Aug 2024 04:09:54 +0300 Subject: [PATCH] don't free the surface lol --- townengine/textures/textures.c | 1 - 1 file changed, 1 deletion(-) diff --git a/townengine/textures/textures.c b/townengine/textures/textures.c index fd0a56e..145bd40 100644 --- a/townengine/textures/textures.c +++ b/townengine/textures/textures.c @@ -521,7 +521,6 @@ void textures_bind_repeating(const struct texture_cache *cache, t_texture_key ke texture.data->pixels); SDL_UnlockSurface(texture.data); - SDL_FreeSurface(texture.data); cache->hash[key.id].value.repeating_texture = repeating_texture;