Properly check limit in gl.activeTexture()

This commit is contained in:
Anthony Ramine 2018-08-03 15:18:17 +02:00
parent 73df3ad2ea
commit 8b1c753c6c
3 changed files with 155 additions and 141 deletions

View file

@ -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() {