Make "Unexpected varying type" a bit less annoying

This commit is contained in:
Dzmitry Malyshau authored and Dzmitry Malyshau committed 2021-09-20 12:07:01 -04:00
1 parent 87c8680ffd
commit be6898f166
1 file changed
+5 -1
+5 -1
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;
}
};