blackberry/GamePlay — pull request #1343 by staticfloat (2013-12-17 07:40:24+00:00)
Title: Remove unused parameters from Effects, warning only once

This pull request was motivated by the warning messages that get printed out every frame when a material has parameters set that the shader does not use. This happens when parameters are set too widely or when uniforms are not used in a shader and get optimized out.

This pull request changes the behavior from printing out a warning every frame (due to the `bind()` call happening every frame) to printing out a warning once and then removing that unused parameter from that effect. I am uncertain if this change is safe for materials with multiple passes where the parameter is set higher in the inheritance chain however, so I would appreciate some feedback on whether this is a good change or not.