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

WebGL2 wait sync fixes #8460

Merged
merged 4 commits into from
Apr 22, 2019
Merged

WebGL2 wait sync fixes #8460

merged 4 commits into from
Apr 22, 2019

Conversation

coopersimon
Copy link
Contributor

Fixes #8458

A bit messy in the .c file, but I couldn't think of a good way of expanding the 64-bit int in a re-usable manner.

I tested this on Chrome 73 and Firefox 66, and it worked on both - however for some reason Chrome's max timeout for these functions is set to 0, so it instantly fails there.

@kripken
Copy link
Member

kripken commented Apr 22, 2019

Thanks @coopersimon!

Would be good to have a bug on that chromium issue (with timeout 0) if there isn't already one, cc @kenrussell

@kripken kripken merged commit 5d16abc into emscripten-core:incoming Apr 22, 2019
@kenrussell
Copy link
Collaborator

Chrome doesn't allow the main thread of the JavaScript process to block. The choice of 0 for the MAX_CLIENT_WAIT_TIMEOUT_WEBGL is deliberate.

Clients can still essentially poll for completion of a sync object by passing a 0 timeout.

@kripken
Copy link
Member

kripken commented Apr 22, 2019

Thanks @kenrussell, sounds like we don't need to do anything here then.

VirtualTim pushed a commit to VirtualTim/emscripten that referenced this pull request May 21, 2019
Handle the i64 constant in those function signatures.

Fixes emscripten-core#8458
VirtualTim added a commit to VirtualTim/emscripten that referenced this pull request May 23, 2019
VirtualTim added a commit to VirtualTim/emscripten that referenced this pull request May 23, 2019
belraquib pushed a commit to belraquib/emscripten that referenced this pull request Dec 23, 2020
Handle the i64 constant in those function signatures.

Fixes emscripten-core#8458
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.

glClientWaitSync and glWaitSync have the wrong signature.
3 participants