Skip to content

Commit

Permalink
another rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Valigursky committed Dec 2, 2024
1 parent 83a870e commit 5c49967
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/platform/graphics/texture.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ class Texture {
if (options.numLevels !== undefined) {
this._numLevels = options.numLevels;
}
this._updateMipLevelCount();
this._updateNumLevel();

this._minFilter = options.minFilter ?? FILTER_LINEAR_MIPMAP_LINEAR;
this._magFilter = options.magFilter ?? FILTER_LINEAR;
Expand Down Expand Up @@ -350,7 +350,7 @@ class Texture {
this._width = Math.floor(width);
this._height = Math.floor(height);
this._depth = Math.floor(depth);
this._updateMipLevelCount();
this._updateNumLevel();

// re-create the implementation
this.impl = device.createTextureImpl(this);
Expand Down Expand Up @@ -394,7 +394,7 @@ class Texture {
this.renderVersionDirty = this.device.renderVersion;
}

_updateMipLevelCount() {
_updateNumLevel() {

const maxLevels = this.mipmaps ? TextureUtils.calcMipLevelsCount(this.width, this.height) : 1;
const requestedLevels = this._numLevelsRequested;
Expand Down

0 comments on commit 5c49967

Please sign in to comment.