Skip to content

Commit

Permalink
c_char_p needs bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Oct 25, 2023
1 parent c6864e4 commit 2c9aa66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xpra/client/gl/backing.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,9 +450,9 @@ def gl_marker(self, *msg) -> None:
if not GREMEDY_DEBUG:
return
try:
s = msg[0] % msg[1:]
s = strtobytes(msg[0] % msg[1:])
except TypeError:
s = str(msg)
s = strtobytes(msg)
from ctypes import c_char_p # pylint: disable=import-outside-toplevel
c_string = c_char_p(s)
glStringMarkerGREMEDY(0, c_string)
Expand Down

0 comments on commit 2c9aa66

Please sign in to comment.