Skip to content

Commit

Permalink
fix bufferType lost breaking updateAttribute later on (#27751)
Browse files Browse the repository at this point in the history
  • Loading branch information
RenaudRohlinger committed Feb 15, 2024
1 parent 3606ee1 commit 35ad738
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/jsm/renderers/webgl/utils/WebGLAttributeUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class DualAttributeData {

this.buffers = [ attributeData.bufferGPU, dualBuffer ];
this.type = attributeData.type;
this.bufferType = attributeData.bufferType;
this.pbo = attributeData.pbo;
this.byteLength = attributeData.byteLength;
this.bytesPerElement = attributeData.BYTES_PER_ELEMENT;
Expand Down Expand Up @@ -128,6 +129,7 @@ class WebGLAttributeUtils {

let attributeData = {
bufferGPU,
bufferType,
type,
byteLength: array.byteLength,
bytesPerElement: array.BYTES_PER_ELEMENT,
Expand Down

0 comments on commit 35ad738

Please sign in to comment.