Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upWebGLThread panic while loading https://aframe.io/examples on Android #21993
Comments
|
AFAIK recent OpenGL versions don't like |
|
This was probably fixed by #24055. |
|
I'm seeing this on MacOS on https://www.joshmatthews.net/demos/lamp.html
|
|
@asajeffrey That's fixed by #24111. |
|
Er, is it? This panic is caused by servo/components/canvas/webgl_thread.rs Line 1728 in 4f4e219 |
|
Oh dear. |
|
We may need to make the fix from #24055 conditional on whether it's a webgl 1 or webgl 2 context. |
|
The following fixes the panic, but isn't exactly lovely:
|
|
It would be nicer to use the GL version to determine which API to use, but who knows if that will work with all drivers? |
…earth Fallback to old extensions API if NUM_EXTENSIONS errors <!-- Please describe your changes on the following line: --> Fixes a panic querying extensions in WebGL 1. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #21993 - [x] These changes do not require tests because it fixes a panic <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24128) <!-- Reviewable:end -->
https://aframe.io/examples is unresponsive and never ends loading.