mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
webgl: Don't panic on sampler3D and sampler2DArray uniforms.
This commit is contained in:
parent
5eaa9ef8cb
commit
6cdbab5581
1 changed files with 3 additions and 0 deletions
|
@ -2460,6 +2460,9 @@ impl WebGL2RenderingContextMethods for WebGL2RenderingContext {
|
|||
&uniform_get(triple, WebGLCommand::GetUniformFloat4x3),
|
||||
)
|
||||
},
|
||||
constants::SAMPLER_3D | constants::SAMPLER_2D_ARRAY => {
|
||||
Int32Value(uniform_get(triple, WebGLCommand::GetUniformInt))
|
||||
},
|
||||
_ => self.base.GetUniform(cx, program, location),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue