Bläddra i källkod

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 år sedan
förälder
incheckning
87477985e2
1 ändrade filer med 2 tillägg och 0 borttagningar
  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();
+
 	}
 
 	//