mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-23 00:07:49 +01:00
Texture handle shim
This commit is contained in:
parent
6858c646a2
commit
dc83879c89
25 changed files with 68 additions and 63 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue