Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/jsm/renderers/webgpu/WebGPUTextures.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ class WebGPUTextures {

} else {

if ( image !== undefined ) {
if ( image !== null ) {

// assume HTMLImageElement, HTMLCanvasElement or ImageBitmap

Expand Down Expand Up @@ -701,7 +701,7 @@ class WebGPUTextures {
height = ( image.length > 0 ) ? image[ 0 ].height : 1;
depth = 6; // one image for each side of the cube map

} else if ( image !== undefined ) {
} else if ( image !== null ) {

width = image.width;
height = image.height;
Expand Down