From 322fbf6bbd28c8a7db56b1bc73cda52620dad149 Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Sun, 9 Feb 2025 07:51:21 +0300 Subject: [PATCH] twn_textures.c: don't zero fill intermediate surfaces --- src/twn_textures.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/twn_textures.c b/src/twn_textures.c index 6a2f171..27b8988 100644 --- a/src/twn_textures.c +++ b/src/twn_textures.c @@ -213,9 +213,6 @@ static void recreate_current_atlas_texture(TextureCache *cache) { /* for example, if full page of 64x64 tiles was already filled, there's no real reason to process them further */ SDL_Surface *atlas_surface = cache->atlas_surfaces[cache->atlas_index]; - /* clear */ - SDL_FillRect(atlas_surface, NULL, 0); - /* blit the texture surfaces onto the atlas */ for (size_t i = 0; i < shlenu(cache->hash); ++i) { /* skip all that aren't part of currently built one */