Skip to content

Commit

Permalink
Fix back creation for empty cubemaps
Browse files Browse the repository at this point in the history
  • Loading branch information
heretique committed Jun 27, 2024
1 parent ff111e5 commit 0f4dd31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/graphics/webgl/webgl-texture.js
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ class WebglTexture {
resMult = 1 / Math.pow(2, mipLevel);
for (face = 0; face < texture.slices; face++) {
const texData = mipObject[face];
if (!texture._levelsUpdated[0][face] || !texData)
if (!texture._levelsUpdated[0][face])
continue;

if (texture._compressed) {
Expand Down

0 comments on commit 0f4dd31

Please sign in to comment.