private void CreateInternalTexture()
{
this.texture = new Texture(this.pixelData,
Texture.SizeMode.Enlarge,
this.IsPixelGridAligned ? TextureMagFilter.Nearest : TextureMagFilter.Linear,
this.IsPixelGridAligned ? TextureMinFilter.Nearest : TextureMinFilter.LinearMipmapLinear,
keepPixmapDataResident: DualityApp.ExecContext == DualityApp.ExecutionContext.Editor || this.Characters == CharacterSet.Dynamic);
}