Skip to content

Commit 2c26d99

Browse files
committed
Clear the entire text buffer on the gpu when updating text lines
1 parent 910274f commit 2c26d99

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

demosys/effects/text/effects/writer_2d.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def text_lines(self):
5050
@text_lines.setter
5151
def text_lines(self, value):
5252
self._text_lines = value
53+
self._string_buffer.clear(chunk=b'\32')
5354

5455
for i, line in enumerate(self._text_lines):
5556
self.set_text_line(i, line)

0 commit comments

Comments
 (0)