Texture handle shim

This commit is contained in:
goaaats 2025-04-14 21:20:39 +02:00
parent 6858c646a2
commit dc83879c89
25 changed files with 68 additions and 63 deletions

View file

@ -709,7 +709,7 @@ internal sealed partial class FontAtlasFactory
name);
this.factory.TextureManager.Blame(wrap, this.data.Owner?.OwnerPlugin);
this.data.AddExistingTexture(wrap);
texture.TexID = wrap.ImGuiHandle;
texture.TexID = wrap.Handle;
}
else if (texture.TexPixelsAlpha8 is not null)
{
@ -755,7 +755,7 @@ internal sealed partial class FontAtlasFactory
name);
this.factory.TextureManager.Blame(wrap, this.data.Owner?.OwnerPlugin);
this.data.AddExistingTexture(wrap);
texture.TexID = wrap.ImGuiHandle;
texture.TexID = wrap.Handle;
continue;
}
else

View file

@ -126,7 +126,7 @@ internal sealed partial class FontAtlasFactory
if (this.wraps is null)
throw new ObjectDisposedException(nameof(FontAtlasBuiltData));
var handle = wrap.ImGuiHandle;
var handle = wrap.Handle;
var index = this.ImTextures.IndexOf(x => x.TexID == handle);
if (index == -1)
{