mirror of
https://github.com/servo/servo.git
synced 2025-08-12 17:05:33 +01:00
webgl: Use glow::Context::supported_extensions()
to implement getSupportedExtensions()
(#36911)
Not only does this simplify the code, it fixes a problem where we were attempting to use an OpenGL 3.0 API on an incompatible GL context. Testing: There are already tests for `getSupportedExtensions()` in the WebGL suite, but effectively testing this requires drivers that do not support a particular version of OpenGL, so it is a bit hard to actually test. Fixes: #36852. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
1a2e0a77d9
commit
d39b9f05ff
3 changed files with 7 additions and 18 deletions
|
@ -26,6 +26,7 @@ fnv = { workspace = true }
|
|||
glow = { workspace = true }
|
||||
half = "2"
|
||||
ipc-channel = { workspace = true }
|
||||
itertools = { workspace = true }
|
||||
log = { workspace = true }
|
||||
pixels = { path = "../pixels" }
|
||||
snapshot = { workspace = true }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue