Avoid sized trait requirements on &light
@@ -164,7 +164,7 @@ pub trait Light {
fn use_uniforms(&self, program: &Program, camera: &Camera, i: u32) -> ThreeDResult<()>;
}
-impl<T: Light> Light for &T {
+impl<T: Light + ?Sized> Light for &T {
fn shader_source(&self, i: u32) -> String {
(*self).shader_source(i)
}
