webgl: Don't panic on sampler3D and sampler2DArray uniforms.

This commit is contained in:
Josh Matthews 2020-03-10 12:34:24 -04:00
parent 5eaa9ef8cb
commit 6cdbab5581

View file

@ -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),
}
}