File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ fn check_standard_material_leak() {
74
74
. add_systems (
75
75
Update ,
76
76
(
77
- touch_mutably :: < Mesh > ,
77
+ touch_mutably :: < StandardMaterial > ,
78
78
crash_on_material_leak_detection :: < StandardMaterial > ,
79
79
) ,
80
80
) ;
@@ -124,7 +124,7 @@ fn crash_on_mesh_leak_detection(diagnostic_store: Res<DiagnosticsStore>) {
124
124
. filter ( |diag| diag. value > 0. ) ,
125
125
) {
126
126
assert ! (
127
- render_meshes . value < allocations . value * 10. ,
127
+ allocations . value < render_meshes . value * 10. ,
128
128
"Detected leak"
129
129
) ;
130
130
}
@@ -141,6 +141,6 @@ fn crash_on_material_leak_detection<M: Material>(diagnostic_store: Res<Diagnosti
141
141
. get_measurement ( & MaterialAllocatorDiagnosticPlugin :: < M > :: allocations_diagnostic_path ( ) )
142
142
. filter ( |diag| diag. value > 0. ) ,
143
143
) {
144
- assert ! ( materials . value < allocations . value * 10. , "Detected leak" ) ;
144
+ assert ! ( allocations . value < materials . value * 10. , "Detected leak" ) ;
145
145
}
146
146
}
You can’t perform that action at this time.
0 commit comments