don't free the surface lol

This commit is contained in:
veclav talica 2024-08-01 04:09:54 +03:00
parent 9d2aa9b9ba
commit 6ec72db2d4

View File

@ -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;