diff --git a/05_sdl_alapok/texture.cpp b/05_sdl_alapok/texture.cpp index 26fcb17..08ad096 100644 --- a/05_sdl_alapok/texture.cpp +++ b/05_sdl_alapok/texture.cpp @@ -129,6 +129,8 @@ void Texture::refresh() { void Texture::free() { if (_texture) { SDL_DestroyTexture(_texture); + + _texture = nullptr; } }