mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Properly check limit in gl.activeTexture()
This commit is contained in:
parent
73df3ad2ea
commit
8b1c753c6c
3 changed files with 155 additions and 141 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue