Skip to content

Commit

Permalink
Merge pull request #1508 from RSSchermer/master
Browse files Browse the repository at this point in the history
Add `bufferSubData` and `clearBuffer[fiuv]` to immutable slice whitelist
  • Loading branch information
alexcrichton committed May 8, 2019
2 parents 61e2a12 + 15e5162 commit d139228
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/webidl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,17 @@ fn immutable_slice_whitelist() -> BTreeSet<&'static str> {
"vertexAttrib3fv",
"vertexAttrib4fv",
"bufferData",
"bufferSubData",
"texImage2D",
"texSubImage2D",
"compressedTexImage2D",
// WebGl2RenderingContext
"texImage3D",
"texSubImage3D",
"compressedTexImage3D",
"clearBufferfv",
"clearBufferiv",
"clearBufferuiv",
// TODO: Add another type's functions here. Leave a comment header with the type name
])
}
Expand Down

0 comments on commit d139228

Please sign in to comment.