Explorar o código

WebGPURenderer: Initialize WebGPU attribute buffer version as geometry attribute version

Takahiro %!s(int64=4) %!d(string=hai) anos
pai
achega
c28c785573
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/jsm/renderers/webgpu/WebGPUAttributes.js

+ 1 - 1
examples/jsm/renderers/webgpu/WebGPUAttributes.js

@@ -65,7 +65,7 @@ class WebGPUAttributes {
 		buffer.unmap();
 		buffer.unmap();
 
 
 		return {
 		return {
-			version: 0,
+			version: attribute.version,
 			buffer: buffer
 			buffer: buffer
 		};
 		};