don't free the surface lol
This commit is contained in:
parent
9d2aa9b9ba
commit
6ec72db2d4
@ -521,7 +521,6 @@ void textures_bind_repeating(const struct texture_cache *cache, t_texture_key ke
|
|||||||
texture.data->pixels);
|
texture.data->pixels);
|
||||||
|
|
||||||
SDL_UnlockSurface(texture.data);
|
SDL_UnlockSurface(texture.data);
|
||||||
SDL_FreeSurface(texture.data);
|
|
||||||
|
|
||||||
cache->hash[key.id].value.repeating_texture = repeating_texture;
|
cache->hash[key.id].value.repeating_texture = repeating_texture;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user