text: use quad zindex when drawing labels

This commit is contained in:
Carter Anderson 2020-06-21 18:55:47 -07:00
parent c654987ae3
commit fa9348fe2b

View File

@ -77,7 +77,7 @@ impl Label {
&texture_atlases,
&mut render_resource_bindings,
&mut asset_render_resource_bindings,
Vec3::new(position.x(), position.y(), 0.0),
Vec3::new(position.x(), position.y(), quad.z_index),
&label.style,
&label.text,
);