Explorar o código

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

Co-authored-by: aardgoose <[email protected]>
aardgoose %!s(int64=2) %!d(string=hai) anos
pai
achega
9abfda6c96
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 = {};
 
-		options.imageOrientation = ( texture.flipY === true ) ? 'flipY' : 'none';
+		options.imageOrientation = ( texture.flipY === true ) ? 'flipY' : 'default';
 		options.premultiplyAlpha = ( texture.premultiplyAlpha === true ) ? 'premultiply' : 'default';
 
 		return createImageBitmap( image, 0, 0, width, height, options );