Fix crash when tga image loader succeeds in loading a 0x0 image

Copy resource bitmaps before using them on a worker thread
This commit is contained in:
Magnus Norddahl 2020-03-19 15:46:04 +01:00
parent e19b2912f3
commit 44d972c876
4 changed files with 14 additions and 5 deletions

View file

@ -39,7 +39,7 @@ namespace CodeImp.DoomBuilder.Data
// Initialize
this.width = 0;
this.height = 0;
this.loadbitmap = Properties.Resources.UnknownImage;
this.loadbitmap = new Bitmap(Properties.Resources.UnknownImage);
SetName("");
LoadImageNow();