+ removed unnecessary EventInput code from the linux build, null check before disposing sprite texture
This commit is contained in:
Regalis
2016-11-09 21:01:38 +02:00
parent f3bea2702b
commit 50a770a2a6
4 changed files with 68 additions and 51 deletions
+5 -1
View File
@@ -379,7 +379,11 @@ namespace Barotrauma
}
//if not, free the texture
texture.Dispose();
if (texture != null)
{
texture.Dispose();
texture = null;
}
}
}