瀏覽代碼

WebGLAttributes: Call onUploadCallback again after updating a buffer (#24912)

When a `BufferAttribute` is updated (using `needsUpdate = true`) it is uploaded to VRAM a second time. This PR calls `onUploadCallback` for each upload. Previously, it was only called after the first initial upload.
Luis Fonsi VEVO 2 年之前
父節點
當前提交
87477985e2
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/renderers/webgl/WebGLAttributes.js

+ 2 - 0
src/renderers/webgl/WebGLAttributes.js

@@ -112,6 +112,8 @@ function WebGLAttributes( gl, capabilities ) {
 
 		}
 
+		attribute.onUploadCallback();
+
 	}
 
 	//