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

OpenGL: handle glFenceSync returning null #8419

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

bejado
Copy link
Member

@bejado bejado commented Feb 6, 2025

BUGS = [394324805]

@bejado bejado added the internal Issue/PR does not affect clients label Feb 6, 2025
@bejado bejado requested a review from pixelflinger February 6, 2025 18:26
// glFenceSync can return 0 in certain situations. For example, we've seen this happen on Web
// when the GL context has been lost.
// Unfortunately, there's not much we can do here. The fn callback will never execute, which
// could cause issues. If we've lost the WebGL context though, Filament is most likely shutting
Copy link
Collaborator

Choose a reason for hiding this comment

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

It's very dangerous. e.g. the callback could be releasing a condition variable or memory.
I think I would prefer to do this only on Web (with a log); and assert in the other cases.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah that sounds reasonable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Issue/PR does not affect clients
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants