fix: remove invalid assert in TextureManager

This commit is contained in:
goat 2023-10-01 12:58:31 +02:00
parent f44c6794e7
commit 6e8a97336c
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B

View file

@ -297,10 +297,9 @@ internal class TextureManager : IDisposable, IServiceType, ITextureProvider, ITe
TextureInfo? info; TextureInfo? info;
lock (this.activeTextures) lock (this.activeTextures)
{ {
// This either is a new texture, or it had been evicted and now wants to be drawn again.
if (!this.activeTextures.TryGetValue(path, out info)) if (!this.activeTextures.TryGetValue(path, out info))
{ {
Debug.Assert(rethrow, "This should never run when getting outside of creator");
info = new TextureInfo(); info = new TextureInfo();
this.activeTextures.Add(path, info); this.activeTextures.Add(path, info);
} }