Dear Maintainer,

I've fixed this FTBFS in Ubuntu (LP: #2134079). I've attached the patch
here for your convenience.

I just changed the glenviron_shader log type to a byte string so it doesn't
try to coerce and fail.

All the best,
Max
Description: Use byte string for log
 If a regular Python string is used for this value, it fails to coerce the
 type, causing the build to fail.
Author: Max Gilmour <[email protected]>
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/renpy/+bug/2134079 
Last-Update: 2025-12-05
---
--- a/renpy/gl/glenviron_shader.pyx
+++ b/renpy/gl/glenviron_shader.pyx
@@ -278,14 +278,14 @@
     else:
         glGetProgramiv(handle, GL_INFO_LOG_LENGTH, &log_length)
 
-    log = ' ' * log_length
+    log = b' ' * log_length
 
     if shader:
         glGetShaderInfoLog(handle, log_length, &log_length, <char *> log)
     else:
         glGetProgramInfoLog(handle, log_length, &log_length, <char *> log)
 
-    raise Exception("Shader error: %s" % log)
+    raise Exception("Shader error: %s" % log.decode("utf-8"))
 
 
 def compile_shader(kind, source):

Reply via email to