mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Cache which capabilities are enabled in the context (fixes #20534)
This is needed for #20555.
This commit is contained in:
parent
65df9cb73a
commit
5a9ad01145
3 changed files with 75 additions and 35 deletions
|
@ -709,8 +709,6 @@ impl WebGLImpl {
|
|||
ctx.gl().enable_vertex_attrib_array(attrib_id),
|
||||
WebGLCommand::Hint(name, val) =>
|
||||
ctx.gl().hint(name, val),
|
||||
WebGLCommand::IsEnabled(cap, ref chan) =>
|
||||
chan.send(ctx.gl().is_enabled(cap) != 0).unwrap(),
|
||||
WebGLCommand::LineWidth(width) =>
|
||||
ctx.gl().line_width(width),
|
||||
WebGLCommand::PixelStorei(name, val) =>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue