mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
webgl: Return TEXTURE_IMMUTABLE_FORMAT as a boolean; don't panic on macOS for TEXTURE_IMMUTABLE_LEVELS.
This commit is contained in:
parent
3876d6dbdd
commit
9ce84d94de
5 changed files with 47 additions and 6 deletions
|
@ -449,6 +449,7 @@ pub enum WebGLCommand {
|
|||
GetCurrentVertexAttrib(u32, WebGLSender<[f32; 4]>),
|
||||
GetTexParameterFloat(u32, TexParameterFloat, WebGLSender<f32>),
|
||||
GetTexParameterInt(u32, TexParameterInt, WebGLSender<i32>),
|
||||
GetTexParameterBool(u32, TexParameterBool, WebGLSender<bool>),
|
||||
GetInternalFormatIntVec(u32, u32, InternalFormatIntVec, WebGLSender<Vec<i32>>),
|
||||
TexParameteri(u32, u32, i32),
|
||||
TexParameterf(u32, u32, f32),
|
||||
|
@ -886,9 +887,11 @@ parameters! {
|
|||
TextureMaxLevel = gl::TEXTURE_MAX_LEVEL,
|
||||
TextureCompareFunc = gl::TEXTURE_COMPARE_FUNC,
|
||||
TextureCompareMode = gl::TEXTURE_COMPARE_MODE,
|
||||
TextureImmutableFormat = gl::TEXTURE_IMMUTABLE_FORMAT,
|
||||
TextureImmutableLevels = gl::TEXTURE_IMMUTABLE_LEVELS,
|
||||
}),
|
||||
Bool(TexParameterBool {
|
||||
TextureImmutableFormat = gl::TEXTURE_IMMUTABLE_FORMAT,
|
||||
}),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue