Browse Source

Source: Fix `getSize()` for `VideoFrame`. (#33131)

PoseidonEnergy 1 month ago
parent
commit
2014dd06ef
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/textures/Source.js

+ 1 - 1
src/textures/Source.js

@@ -90,7 +90,7 @@ class Source {
 
 
 		} else if ( ( typeof VideoFrame !== 'undefined' ) && ( data instanceof VideoFrame ) ) {
 		} else if ( ( typeof VideoFrame !== 'undefined' ) && ( data instanceof VideoFrame ) ) {
 
 
-			target.set( data.displayHeight, data.displayWidth, 0 );
+			target.set( data.displayWidth, data.displayHeight, 0 );
 
 
 		} else if ( data !== null ) {
 		} else if ( data !== null ) {
 
 

粤ICP备19079148号