From 1a1a09d2c6e8079ed4ef07ae23adb4d194b51e4b Mon Sep 17 00:00:00 2001 From: Mathew Hodson Date: Wed, 27 Apr 2022 09:00:22 +0000 Subject: [PATCH] Bug 1691761 - Remove noisy vertex attribute warning. r=gw Differential Revision: https://phabricator.services.mozilla.com/D144528 --- gfx/wr/webrender/src/device/gl.rs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/gfx/wr/webrender/src/device/gl.rs b/gfx/wr/webrender/src/device/gl.rs index 1bceffb4b87d..1382cfe7e441 100644 --- a/gfx/wr/webrender/src/device/gl.rs +++ b/gfx/wr/webrender/src/device/gl.rs @@ -2393,24 +2393,6 @@ impl Device { // Link! self.gl.link_program(program.id); - if cfg!(debug_assertions) { - // Check that all our overrides worked - for (i, attr) in descriptor - .vertex_attributes - .iter() - .chain(descriptor.instance_attributes.iter()) - .enumerate() - { - //Note: we can't assert here because the driver may optimize out some of the - // vertex attributes legitimately, returning their location to be -1. - let location = self.gl.get_attrib_location(program.id, attr.name); - if location != i as gl::GLint { - warn!("Attribute {:?} is not found in the shader {}. Expected at {}, found at {}", - attr, program.source_info.base_filename, i, location); - } - } - } - // GL recommends detaching and deleting shaders once the link // is complete (whether successful or not). This allows the driver // to free any memory associated with the parsing and compilation.