mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Add support for DrawRangeElements in WebGL2
Adds initial support for the WebGL2 `DrawRangeElements` call.
This commit is contained in:
parent
c3ecf2ecef
commit
bfa43fbeba
8 changed files with 216 additions and 108 deletions
|
@ -572,6 +572,11 @@ impl WebGLProgram {
|
|||
return Err(WebGLError::InvalidValue);
|
||||
}
|
||||
|
||||
let mut active_uniforms = self.active_uniforms.borrow_mut();
|
||||
if active_uniforms.len() > block_binding as usize {
|
||||
active_uniforms[block_binding as usize].bind_index = Some(block_binding);
|
||||
}
|
||||
|
||||
self.upcast::<WebGLObject>()
|
||||
.context()
|
||||
.send_command(WebGLCommand::UniformBlockBinding(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue