Skip to content

Commit 1aeae99

Browse files
authored
WebGPURenderer: Guard reference to VideoFrame. (#31864)
1 parent b4e2207 commit 1aeae99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderers/common/Textures.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ class Textures extends DataMap {
391391
target.height = image.videoHeight || 1;
392392
target.depth = 1;
393393

394-
} else if ( image instanceof VideoFrame ) {
394+
} else if ( ( typeof VideoFrame !== 'undefined' ) && ( image instanceof VideoFrame ) ) {
395395

396396
target.width = image.displayWidth || 1;
397397
target.height = image.displayHeight || 1;

0 commit comments

Comments
 (0)