|
@@ -10471,14 +10471,16 @@ var BABYLON;
|
|
|
Engine.prototype.resetTextureCache = function () {
|
|
|
for (var key in this._boundTexturesCache) {
|
|
|
var boundTexture = this._boundTexturesCache[key];
|
|
|
- if (!this.disableTextureBindingOptimization && boundTexture) {
|
|
|
+ if (boundTexture) {
|
|
|
this._removeDesignatedSlot(boundTexture);
|
|
|
}
|
|
|
this._boundTexturesCache[key] = null;
|
|
|
}
|
|
|
- this._nextFreeTextureSlots = [];
|
|
|
- for (var slot = 0; slot < this._maxSimultaneousTextures; slot++) {
|
|
|
- this._nextFreeTextureSlots.push(slot);
|
|
|
+ if (!this.disableTextureBindingOptimization) {
|
|
|
+ this._nextFreeTextureSlots = [];
|
|
|
+ for (var slot = 0; slot < this._maxSimultaneousTextures; slot++) {
|
|
|
+ this._nextFreeTextureSlots.push(slot);
|
|
|
+ }
|
|
|
}
|
|
|
this._currentTextureChannel = -1;
|
|
|
};
|
|
@@ -13306,6 +13308,9 @@ var BABYLON;
|
|
|
return -1;
|
|
|
}
|
|
|
internalTexture._designatedSlot = -1;
|
|
|
+ if (this.disableTextureBindingOptimization) {
|
|
|
+ return -1;
|
|
|
+ }
|
|
|
// Remove from bound list
|
|
|
this._linkTrackers(internalTexture.previous, internalTexture.next);
|
|
|
// Free the slot
|
|
@@ -13327,7 +13332,7 @@ var BABYLON;
|
|
|
var currentTextureBound = this._boundTexturesCache[this._activeChannel];
|
|
|
var isTextureForRendering = texture && texture._initialSlot > -1;
|
|
|
if (currentTextureBound !== texture) {
|
|
|
- if (currentTextureBound && !this.disableTextureBindingOptimization) {
|
|
|
+ if (currentTextureBound) {
|
|
|
this._removeDesignatedSlot(currentTextureBound);
|
|
|
}
|
|
|
this._activateCurrentTexture();
|
|
@@ -49688,7 +49693,7 @@ var BABYLON;
|
|
|
|
|
|
|
|
|
|
|
|
-//# sourceMappingURL=babylon.IParticleEmitterType.js.map
|
|
|
+//# sourceMappingURL=babylon.iParticleEmitterType.js.map
|
|
|
|
|
|
var BABYLON;
|
|
|
(function (BABYLON) {
|