Fix bug with removing a removed texture reference
This commit is contained in:
1 parent
f0b227798e
commit
a06e5066e9
1 file changed
+3
@@ -882,6 +882,8 @@ namespace Vocaluxe.Lib.Draw
|
||||
{
|
||||
if (textureRef == null)
|
||||
return;
|
||||
if (textureRef.ID > 0)
|
||||
{
|
||||
if (_MainThreadID != Thread.CurrentThread.ManagedThreadId)
|
||||
{
|
||||
lock (_TextureQueue)
|
||||
@@ -901,6 +903,7 @@ namespace Vocaluxe.Lib.Draw
|
||||
}
|
||||
textureRef.SetRemoved();
|
||||
}
|
||||
}
|
||||
textureRef = null;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user