Skip to content

Commit ae0e506

Browse files
committed
Make sure we clear out the text fields when drawing text in custom rects on the GPU view.
1 parent 4dcc02d commit ae0e506

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Graph Views/XRGGPUView.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,10 @@ - (void)drawGraph {
223223
}
224224
}
225225

226+
self.leftLabel.stringValue = @"";
227+
self.centerLabel.stringValue = @"";
228+
self.rightLabel.stringValue = @"";
229+
226230
[leftText drawInRect:textRect withAttributes:[appSettings alignLeftAttributes]];
227231
[centerText drawInRect:textRect withAttributes:[appSettings alignCenterAttributes]];
228232
[rightText drawInRect:textRect withAttributes:[appSettings alignRightAttributes]];

0 commit comments

Comments
 (0)