Skip to content

Commit 0f4dd31

Browse files
committed
Fix back creation for empty cubemaps
1 parent ff111e5 commit 0f4dd31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platform/graphics/webgl/webgl-texture.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ class WebglTexture {
488488
resMult = 1 / Math.pow(2, mipLevel);
489489
for (face = 0; face < texture.slices; face++) {
490490
const texData = mipObject[face];
491-
if (!texture._levelsUpdated[0][face] || !texData)
491+
if (!texture._levelsUpdated[0][face])
492492
continue;
493493

494494
if (texture._compressed) {

0 commit comments

Comments
 (0)