aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webgl_validations
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2018-08-03 15:18:17 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2018-08-23 15:15:33 +0200
commit8b1c753c6c7bb6359e9cfb27ada86185a966dce1 (patch)
tree5fa54dc4116d4005df53cf3c39a31298e4689636 /components/script/dom/webgl_validations
parent73df3ad2ea27c562311993599e1af9f9b4232ee9 (diff)
downloadservo-8b1c753c6c7bb6359e9cfb27ada86185a966dce1.tar.gz
servo-8b1c753c6c7bb6359e9cfb27ada86185a966dce1.zip
Properly check limit in gl.activeTexture()
Diffstat (limited to 'components/script/dom/webgl_validations')
-rw-r--r--components/script/dom/webgl_validations/tex_image_2d.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/webgl_validations/tex_image_2d.rs b/components/script/dom/webgl_validations/tex_image_2d.rs
index 8a1b9ad9c16..e00c988bcb3 100644
--- a/components/script/dom/webgl_validations/tex_image_2d.rs
+++ b/components/script/dom/webgl_validations/tex_image_2d.rs
@@ -122,7 +122,7 @@ impl<'a> WebGLValidator for CommonTexImage2DValidator<'a> {
}
};
- let texture = self.context.bound_texture_for_target(&target);
+ let texture = self.context.textures().active_texture_for_image_target(target);
let limits = self.context.limits();
let max_size = if target.is_cubic() {