@galacean/engine-core 1.1.0-beta.31 → 1.1.0-beta.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2037,7 +2037,8 @@ var Logger = {
2037
2037
  _proto._createFontAtlas = function _createFontAtlas() {
2038
2038
  var _this = this, engine = _this._engine;
2039
2039
  var fontAtlas = new FontAtlas(engine);
2040
- var texture = new Texture2D(engine, 256, 256);
2040
+ var texture = new Texture2D(engine, 256, 256, exports.TextureFormat.R8G8B8A8, false);
2041
+ texture.filterMode = exports.TextureFilterMode.Point;
2041
2042
  fontAtlas.texture = texture;
2042
2043
  fontAtlas.isGCIgnored = texture.isGCIgnored = true;
2043
2044
  this._fontAtlases.push(fontAtlas);
package/dist/module.js CHANGED
@@ -2032,7 +2032,8 @@ var Logger = {
2032
2032
  _proto._createFontAtlas = function _createFontAtlas() {
2033
2033
  var _this = this, engine = _this._engine;
2034
2034
  var fontAtlas = new FontAtlas(engine);
2035
- var texture = new Texture2D(engine, 256, 256);
2035
+ var texture = new Texture2D(engine, 256, 256, TextureFormat.R8G8B8A8, false);
2036
+ texture.filterMode = TextureFilterMode.Point;
2036
2037
  fontAtlas.texture = texture;
2037
2038
  fontAtlas.isGCIgnored = texture.isGCIgnored = true;
2038
2039
  this._fontAtlases.push(fontAtlas);