mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-02 05:43:40 +01:00
make sure that access is completely atomic
This commit is contained in:
parent
8527e035f1
commit
acb81deb9c
1 changed files with 5 additions and 5 deletions
|
|
@ -305,12 +305,12 @@ internal class TextureManager : IDisposable, IServiceType, ITextureProvider, ITe
|
|||
|
||||
if (info == null)
|
||||
throw new Exception("null info in activeTextures");
|
||||
}
|
||||
|
||||
info.LastAccess = DateTime.UtcNow;
|
||||
|
||||
info.LastAccess = DateTime.UtcNow;
|
||||
|
||||
if (info is { Wrap: not null })
|
||||
return info;
|
||||
if (info is { Wrap: not null })
|
||||
return info;
|
||||
}
|
||||
|
||||
if (!this.im.IsReady)
|
||||
throw new InvalidOperationException("Cannot create textures before scene is ready");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue