mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Simplify gl.getShaderParameter() (fixes #20562)
The expectation change is due to the shader now using its DOM-side compile status. It is actually a bug for the shader to think it actually compiled successfully, but at least it does so consistently now.
This commit is contained in:
parent
a0fc4c9832
commit
76f23f7d78
5 changed files with 13 additions and 41 deletions
|
@ -932,20 +932,6 @@ impl WebGLImpl {
|
|||
}
|
||||
sender.send(value[0]).unwrap()
|
||||
}
|
||||
WebGLCommand::GetShaderParameterBool(shader, param, ref sender) => {
|
||||
let mut value = [0];
|
||||
unsafe {
|
||||
ctx.gl().get_shader_iv(shader.get(), param as u32, &mut value);
|
||||
}
|
||||
sender.send(value[0] != 0).unwrap()
|
||||
}
|
||||
WebGLCommand::GetShaderParameterInt(shader, param, ref sender) => {
|
||||
let mut value = [0];
|
||||
unsafe {
|
||||
ctx.gl().get_shader_iv(shader.get(), param as u32, &mut value);
|
||||
}
|
||||
sender.send(value[0]).unwrap()
|
||||
}
|
||||
WebGLCommand::GetCurrentVertexAttrib(index, ref sender) => {
|
||||
let mut value = [0.; 4];
|
||||
unsafe {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue