aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglprogram.rs
diff options
context:
space:
mode:
authorbors-servo <servo-ops@mozilla.com>2020-04-07 17:24:35 -0400
committerGitHub <noreply@github.com>2020-04-07 17:24:35 -0400
commit7b5ec99d25be61a7a3ec2f630c31a9f02c7b849b (patch)
treed32fd4a47e1014c17c45bd5eeac856ba46018cf4 /components/script/dom/webglprogram.rs
parent5a26190fc9cb4b5ff3f4bf57cf1a88243c732e9e (diff)
parent66b2b3293de3ae99f807d30420e34affa1d3770d (diff)
downloadservo-7b5ec99d25be61a7a3ec2f630c31a9f02c7b849b.tar.gz
servo-7b5ec99d25be61a7a3ec2f630c31a9f02c7b849b.zip
Auto merge of #26135 - jdm:vertex_attrib_i4, r=jdm
Add initial support for VertexAttribI4* and VertexAttribIPointer Add initial support for the WebGL2 `VertexAttribI4i`, `VertexAttribI4iv`, `VertexAttribI4ui`, `VertexAttribI4uiv` and `VertexAttribIPointer` calls. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #26134 and fix #26123. - [x] There are tests for these changes
Diffstat (limited to 'components/script/dom/webglprogram.rs')
-rw-r--r--components/script/dom/webglprogram.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/webglprogram.rs b/components/script/dom/webglprogram.rs
index 78542e7497b..79598f7f5c1 100644
--- a/components/script/dom/webglprogram.rs
+++ b/components/script/dom/webglprogram.rs
@@ -556,7 +556,7 @@ impl WebGLProgram {
return Err(WebGLError::InvalidOperation);
}
- if block_index as usize >= self.active_uniforms.borrow().len() {
+ if block_index as usize >= self.active_uniform_blocks.borrow().len() {
return Err(WebGLError::InvalidValue);
}