aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webgl_validations/tex_image_2d.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webgl_validations/tex_image_2d.rs')
-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 55f0a272201..4e02e82d76b 100644
--- a/components/script/dom/webgl_validations/tex_image_2d.rs
+++ b/components/script/dom/webgl_validations/tex_image_2d.rs
@@ -765,7 +765,7 @@ impl<'a> WebGLValidator for TexStorageValidator<'a> {
return Err(TexImageValidationError::InvalidTextureFormat);
}
- let max_level = log2(cmp::max(width, height) as u32) + 1;
+ let max_level = log2(cmp::max(width, height)) + 1;
if level > max_level {
context.webgl_error(InvalidOperation);
return Err(TexImageValidationError::LevelTooHigh);