From d9ab515e15166fe88ff45970263616d05d340e3e Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 7 Feb 2021 15:49:22 +0200 Subject: [PATCH] Clear Image data before loading a new image --- source/graphics/image.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/graphics/image.cpp b/source/graphics/image.cpp index e22d8ea..50e85df 100644 --- a/source/graphics/image.cpp +++ b/source/graphics/image.cpp @@ -67,6 +67,7 @@ void Image::load_io(IO::Seekable &io) void Image::load(ImageLoader &loader) { + data = Data(); loader.load(data); } -- 2.45.2