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

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 3 лет назад
Родитель
Сommit
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();
+
 	}
 
 	//

粤ICP备19079148号