mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +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
|
@ -1839,6 +1839,11 @@ impl WebGLImpl {
|
|||
.send(gl.get_tex_parameter_iv(target, param as u32))
|
||||
.unwrap();
|
||||
},
|
||||
WebGLCommand::GetTexParameterBool(target, param, ref sender) => {
|
||||
sender
|
||||
.send(gl.get_tex_parameter_iv(target, param as u32) != 0)
|
||||
.unwrap();
|
||||
},
|
||||
WebGLCommand::GetInternalFormatIntVec(target, internal_format, param, ref sender) => {
|
||||
match param {
|
||||
InternalFormatIntVec::Samples => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue