You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/dev/core/src/Materials/uniformBuffer.ts
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1175,6 +1175,10 @@ export class UniformBuffer {
1175
1175
this._buffer=dataBuffer;
1176
1176
this._createBufferOnWrite=false;
1177
1177
this._currentEffect=undefinedasany;
1178
+
if(this._buffers[b][1]){
1179
+
this._bufferData.set(this._buffers[b][1]!);
1180
+
}
1181
+
this._valueCache={};
1178
1182
// The following line prevents the current buffer (_buffer / _bufferIndex) from being updated during subsequent calls to updateXXX() due to a call to _checkNewFrame()
1179
1183
// 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).
0 commit comments