Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for video textures #5836

Merged
merged 4 commits into from
Nov 21, 2023
Merged

Fix for video textures #5836

merged 4 commits into from
Nov 21, 2023

Conversation

slimbuck
Copy link
Member

Fix due to #5759 for video textures.

@slimbuck slimbuck added bug area: graphics Graphics related issue labels Nov 21, 2023
@slimbuck slimbuck requested a review from a team November 21, 2023 16:37
@slimbuck slimbuck self-assigned this Nov 21, 2023
@@ -512,10 +512,13 @@ class WebglTexture {
}
}

const w = mipObject.width || mipObject.videoWidth;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?? would probably be better

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For video textures width and height are 0.

@slimbuck slimbuck merged commit 6a2b88a into playcanvas:main Nov 21, 2023
7 checks passed
@slimbuck slimbuck deleted the tex-fix branch November 21, 2023 16:55
slimbuck added a commit that referenced this pull request Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants