From 35ad738002fda985828ba9fc9886c086e6a469aa Mon Sep 17 00:00:00 2001 From: Renaud Rohlinger Date: Thu, 15 Feb 2024 11:38:50 +0900 Subject: [PATCH] fix bufferType lost breaking updateAttribute later on (#27751) --- examples/jsm/renderers/webgl/utils/WebGLAttributeUtils.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/jsm/renderers/webgl/utils/WebGLAttributeUtils.js b/examples/jsm/renderers/webgl/utils/WebGLAttributeUtils.js index 6c1f8c56ef3df4..0d459a3598329c 100644 --- a/examples/jsm/renderers/webgl/utils/WebGLAttributeUtils.js +++ b/examples/jsm/renderers/webgl/utils/WebGLAttributeUtils.js @@ -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; @@ -128,6 +129,7 @@ class WebGLAttributeUtils { let attributeData = { bufferGPU, + bufferType, type, byteLength: array.byteLength, bytesPerElement: array.BYTES_PER_ELEMENT,