|
@@ -49536,7 +49536,7 @@ var BABYLON;
|
|
|
}
|
|
|
if (this.isCube) {
|
|
|
for (var face = 0; face < 6; face++) {
|
|
|
- engine.bindFramebuffer(this._texture, face);
|
|
|
+ engine.bindFramebuffer(this._texture, face, undefined, undefined, true);
|
|
|
// VBOs
|
|
|
engine.bindBuffers(this._vertexBuffers, this._indexBuffer, this._effect);
|
|
|
this._effect.setFloat("face", face);
|
|
@@ -49551,7 +49551,7 @@ var BABYLON;
|
|
|
}
|
|
|
}
|
|
|
else {
|
|
|
- engine.bindFramebuffer(this._texture);
|
|
|
+ engine.bindFramebuffer(this._texture, 0, undefined, undefined, true);
|
|
|
// VBOs
|
|
|
engine.bindBuffers(this._vertexBuffers, this._indexBuffer, this._effect);
|
|
|
// Clear
|