浏览代码

Use default to replicate original meaning of 'none' (#26453)

Co-authored-by: aardgoose <[email protected]>
aardgoose 2 年之前
父节点
当前提交
9abfda6c96
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/jsm/renderers/webgpu/utils/WebGPUTextureUtils.js

+ 1 - 1
examples/jsm/renderers/webgpu/utils/WebGPUTextureUtils.js

@@ -439,7 +439,7 @@ class WebGPUTextureUtils {
 
 
 		const options = {};
 		const options = {};
 
 
-		options.imageOrientation = ( texture.flipY === true ) ? 'flipY' : 'none';
+		options.imageOrientation = ( texture.flipY === true ) ? 'flipY' : 'default';
 		options.premultiplyAlpha = ( texture.premultiplyAlpha === true ) ? 'premultiply' : 'default';
 		options.premultiplyAlpha = ( texture.premultiplyAlpha === true ) ? 'premultiply' : 'default';
 
 
 		return createImageBitmap( image, 0, 0, width, height, options );
 		return createImageBitmap( image, 0, 0, width, height, options );