Просмотр исходного кода

fix bufferType lost breaking updateAttribute later on (#27751)

Renaud Rohlinger 2 лет назад
Родитель
Сommit
35ad738002
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      examples/jsm/renderers/webgl/utils/WebGLAttributeUtils.js

+ 2 - 0
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,

粤ICP备19079148号