Skip to content

Commit 50a59ec

Browse files
authored
1 parent 5a5f0b1 commit 50a59ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/dev/core/src/Materials/uniformBuffer.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,6 +1175,10 @@ export class UniformBuffer {
11751175
this._buffer = dataBuffer;
11761176
this._createBufferOnWrite = false;
11771177
this._currentEffect = undefined as any;
1178+
if (this._buffers[b][1]) {
1179+
this._bufferData.set(this._buffers[b][1]!);
1180+
}
1181+
this._valueCache = {};
11781182
// The following line prevents the current buffer (_buffer / _bufferIndex) from being updated during subsequent calls to updateXXX() due to a call to _checkNewFrame()
11791183
// If we called setDataBuffer, it means that we want to update the buffer we just defined and not another one (_checkNewFrame() can modify the current buffer).
11801184
this._currentFrameId = this._engine.frameId;

0 commit comments

Comments
 (0)