diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2019-08-27 17:16:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-27 17:16:04 -0400 |
commit | 1fbadc6cc72a9d8a0d0ac2d84331ac41885340c7 (patch) | |
tree | 496fab04c3834d3db2f04c4d7245c40dcaaef064 /components/script/dom/performanceentry.rs | |
parent | 9fe3c4fc0fa3fd0e028f2b4ea16d5d8795e99375 (diff) | |
parent | 736f6859b0a3fc2a42247dd732d7734213cc9eec (diff) | |
download | servo-1fbadc6cc72a9d8a0d0ac2d84331ac41885340c7.tar.gz servo-1fbadc6cc72a9d8a0d0ac2d84331ac41885340c7.zip |
Auto merge of #24055 - mmatyas:fix_webgl2_exts, r=jdm
Fix extension querying when using WebGL2
This patch fixes a crash caused by using a deprecated GL call. Starting with OpenGL 3 (used by WebGL2), the glGetString(GL_EXTENSIONS) call is deprecated, and some drivers produce GL_INVALID_ENUM error. Querying can be done by checking the number of extensions first, then getting the extensions one by one.
---
<!-- 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
- [ ] These changes fix #___ (GitHub issue number if applicable)
<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests (I think) because it depends on the video driver
<!-- 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/24055)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/performanceentry.rs')
0 files changed, 0 insertions, 0 deletions