mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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>
37 lines
1,015 B
TOML
37 lines
1,015 B
TOML
[package]
|
|
name = "webgl"
|
|
version.workspace = true
|
|
authors.workspace = true
|
|
license.workspace = true
|
|
edition.workspace = true
|
|
publish.workspace = true
|
|
rust-version.workspace = true
|
|
|
|
[lib]
|
|
name = "webgl"
|
|
path = "lib.rs"
|
|
|
|
[features]
|
|
webgl_backtrace = ["canvas_traits/webgl_backtrace"]
|
|
webxr = ["dep:webxr", "dep:webxr-api"]
|
|
|
|
[dependencies]
|
|
bitflags = { workspace = true }
|
|
byteorder = { workspace = true }
|
|
canvas_traits = { workspace = true }
|
|
compositing_traits = { workspace = true }
|
|
crossbeam-channel = { workspace = true }
|
|
euclid = { workspace = true }
|
|
fnv = { workspace = true }
|
|
glow = { workspace = true }
|
|
half = "2"
|
|
ipc-channel = { workspace = true }
|
|
itertools = { workspace = true }
|
|
log = { workspace = true }
|
|
pixels = { path = "../pixels" }
|
|
snapshot = { workspace = true }
|
|
surfman = { workspace = true }
|
|
webrender = { workspace = true }
|
|
webrender_api = { workspace = true }
|
|
webxr = { path = "../webxr", features = ["ipc"], optional = true }
|
|
webxr-api = { workspace = true, features = ["ipc"], optional = true }
|