aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webgl2renderingcontext.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2020-03-10 12:34:24 -0400
committerJosh Matthews <josh@joshmatthews.net>2020-03-13 14:05:34 -0400
commit6cdbab5581b642bf44ea18cb1714892962ddbaa9 (patch)
treea67e9da61ddff0f9f3465e9b715297063615b9c6 /components/script/dom/webgl2renderingcontext.rs
parent5eaa9ef8cb552063df2645847a4ab3793c3ebcd6 (diff)
downloadservo-6cdbab5581b642bf44ea18cb1714892962ddbaa9.tar.gz
servo-6cdbab5581b642bf44ea18cb1714892962ddbaa9.zip
webgl: Don't panic on sampler3D and sampler2DArray uniforms.
Diffstat (limited to 'components/script/dom/webgl2renderingcontext.rs')
-rw-r--r--components/script/dom/webgl2renderingcontext.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/webgl2renderingcontext.rs b/components/script/dom/webgl2renderingcontext.rs
index 4928974bb20..dabcd4cf54e 100644
--- a/components/script/dom/webgl2renderingcontext.rs
+++ b/components/script/dom/webgl2renderingcontext.rs
@@ -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),
}
}