Jelajahi Sumber

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 tahun lalu
induk
melakukan
87477985e2
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  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();
+
 	}
 
 	//