mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Mention #20534 near the enable/disable/isEnabled WebGL methods
This commit is contained in:
parent
fb290e9c9e
commit
1881c09a9c
1 changed files with 3 additions and 1 deletions
|
@ -1933,6 +1933,7 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
|
|||
}
|
||||
|
||||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.3
|
||||
// FIXME: https://github.com/servo/servo/issues/20534
|
||||
fn Enable(&self, cap: u32) {
|
||||
if self.validate_feature_enum(cap) {
|
||||
self.send_command(WebGLCommand::Enable(cap));
|
||||
|
@ -1940,6 +1941,7 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
|
|||
}
|
||||
|
||||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.3
|
||||
// FIXME: https://github.com/servo/servo/issues/20534
|
||||
fn Disable(&self, cap: u32) {
|
||||
if self.validate_feature_enum(cap) {
|
||||
self.send_command(WebGLCommand::Disable(cap));
|
||||
|
@ -2496,8 +2498,8 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
|
|||
buffer.map_or(false, |buf| buf.target().is_some() && !buf.is_deleted())
|
||||
}
|
||||
|
||||
// TODO: We could write this without IPC, recording the calls to `enable` and `disable`.
|
||||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.3
|
||||
// FIXME: https://github.com/servo/servo/issues/20534
|
||||
fn IsEnabled(&self, cap: u32) -> bool {
|
||||
if self.validate_feature_enum(cap) {
|
||||
let (sender, receiver) = webgl_channel().unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue