@galacean/engine-core 1.6.6 → 1.6.7

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.
package/dist/module.js CHANGED
@@ -1648,7 +1648,8 @@ SystemInfo._initialize();
1648
1648
  function TextureUtils() {}
1649
1649
  /**
1650
1650
  * Check if the texture config supports auto mipmap generation with real correction for mipmap and isSRGBColorSpace.
1651
- */ TextureUtils.supportGenerateMipmapsWithCorrection = function supportGenerateMipmapsWithCorrection(width, height, format, mipmap, isSRGBColorSpace, isWebGL2) {
1651
+ */ TextureUtils.supportGenerateMipmapsWithCorrection = function supportGenerateMipmapsWithCorrection(engine, width, height, format, mipmap, isSRGBColorSpace) {
1652
+ var isWebGL2 = engine._hardwareRenderer._isWebGL2;
1652
1653
  if (!mipmap) {
1653
1654
  return false;
1654
1655
  }