mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -273,8 +273,6 @@ pub enum WebGLCommand {
|
|||
GetParameterFloat4(ParameterFloat4, WebGLSender<[f32; 4]>),
|
||||
GetProgramValidateStatus(WebGLProgramId, WebGLSender<bool>),
|
||||
GetProgramActiveUniforms(WebGLProgramId, WebGLSender<i32>),
|
||||
GetShaderParameterBool(WebGLShaderId, ShaderParameterBool, WebGLSender<bool>),
|
||||
GetShaderParameterInt(WebGLShaderId, ShaderParameterInt, WebGLSender<i32>),
|
||||
GetCurrentVertexAttrib(u32, WebGLSender<[f32; 4]>),
|
||||
GetTexParameterFloat(u32, TexParameterFloat, WebGLSender<f32>),
|
||||
GetTexParameterInt(u32, TexParameterInt, WebGLSender<i32>),
|
||||
|
@ -583,18 +581,6 @@ parameters! {
|
|||
}
|
||||
}
|
||||
|
||||
parameters! {
|
||||
ShaderParameter {
|
||||
Bool(ShaderParameterBool {
|
||||
DeleteStatus = gl::DELETE_STATUS,
|
||||
CompileStatus = gl::COMPILE_STATUS,
|
||||
}),
|
||||
Int(ShaderParameterInt {
|
||||
ShaderType = gl::SHADER_TYPE,
|
||||
}),
|
||||
}
|
||||
}
|
||||
|
||||
parameters! {
|
||||
TexParameter {
|
||||
Float(TexParameterFloat {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue