This commit is contained in:
Soreepeong 2024-02-28 19:16:14 +09:00
parent aa35052a15
commit f8492dc06b
18 changed files with 410 additions and 361 deletions

View file

@ -592,7 +592,7 @@ internal sealed partial class FontAtlasFactory
}
else if (texture.TexPixelsRGBA32 is not null)
{
var wrap = this.factory.TextureManager.GetFromRaw(
var wrap = this.factory.TextureManager.CreateFromRaw(
RawImageSpecification.Rgba32(width, height),
new(texture.TexPixelsRGBA32, width * height * 4));
this.data.AddExistingTexture(wrap);
@ -632,7 +632,7 @@ internal sealed partial class FontAtlasFactory
}
}
var wrap = this.factory.TextureManager.GetFromRaw(
var wrap = this.factory.TextureManager.CreateFromRaw(
new(
width,
height,

View file

@ -376,7 +376,7 @@ internal sealed partial class FontAtlasFactory
}
return this.scopedFinalizer.Add(
this.TextureManager.GetFromRaw(
this.TextureManager.CreateFromRaw(
new(
texFile.Header.Width,
texFile.Header.Height,