Make "Unexpected varying type" a bit less annoying

This commit is contained in:
Dzmitry Malyshau
2021-09-20 12:03:33 -04:00
committed by Dzmitry Malyshau
parent 87c8680ffd
commit be6898f166

View File

@@ -822,7 +822,11 @@ impl Interface {
return;
}
ref other => {
log::error!("Unexpected varying type: {:?}", other);
//Note: technically this should be at least `log::error`, but
// the reality is - every shader coming from `glslc` outputs an array
// of clip distances and hits this path :(
// So we lower it to `log::warn` to be less annoying.
log::warn!("Unexpected varying type: {:?}", other);
return;
}
};