Skip to content

Commit

Permalink
Fixes pixijs#7272 Cubemap resources not being reuploaded on GL contex…
Browse files Browse the repository at this point in the history
…t loss (pixijs#8479)
  • Loading branch information
lunarraid committed Jul 13, 2022
1 parent a7f477d commit 6ff95ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/textures/resources/CubeResource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export class CubeResource extends AbstractMultiResource
{
const side = this.items[i];

if (dirty[i] < side.dirtyId)
if (dirty[i] < side.dirtyId || glTexture.dirtyId < _baseTexture.dirtyId)
{
if (side.valid && side.resource)
{
Expand Down

0 comments on commit 6ff95ce

Please sign in to comment.