Преглед на файлове

WebGPUTextures: Fix data size (#25249)

Levi Pesin преди 2 години
родител
ревизия
0790e3a471
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      examples/jsm/renderers/webgpu/WebGPUTextures.js

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

@@ -399,7 +399,7 @@ class WebGPUTextures {
 		const data = image.data;
 
 		const bytesPerTexel = this._getBytesPerTexel( format );
-		const bytesPerRow = Math.ceil( image.width * bytesPerTexel / 256 ) * 256;
+		const bytesPerRow = image.width * bytesPerTexel;
 
 		this.device.queue.writeTexture(
 			{