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

WebGLRenderer: Workaround for copyTexImage2D in WebGL2 #21893

Merged
merged 1 commit into from
May 26, 2021
Merged

Conversation

mrdoob
Copy link
Owner

@mrdoob mrdoob commented May 26, 2021

Description

This solves the the issue of RoughnessMipmapper breaking in WebGL2/Chrome/MacOS.

@mrdoob mrdoob added this to the r129 milestone May 26, 2021

if ( capabilities.isWebGL2 ) {

// Workaround for https://bugs.chromium.org/p/chromium/issues/detail?id=1120100

Choose a reason for hiding this comment

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

Is it worth leaving a TOFIX in here saying that once https://crbug.com/882580 is fixed, this workaround should be removed?

Hate to suggest it, but should this workaround be limited to Chrome?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Is it worth leaving a TOFIX in here saying that once https://crbug.com/882580 is fixed, this workaround should be removed?

I'm subscribed to that bug. I'll remove the workaround as soon as it's fixed 👍

Hate to suggest it, but should this workaround be limited to Chrome?

It doesn't seem to break other browsers so I think I'll keep the code simple for now.
I can add more checks if we notice any regressions.

@mrdoob mrdoob merged commit 2b34172 into dev May 26, 2021
@mrdoob mrdoob deleted the roughnessmipmapper branch May 26, 2021 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants