Cache which capabilities are enabled in the context (fixes #20534)

This is needed for #20555.
This commit is contained in:
Anthony Ramine 2018-07-25 13:23:05 +02:00
parent 65df9cb73a
commit 5a9ad01145
3 changed files with 75 additions and 35 deletions

View file

@ -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) =>