Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

pyopengl-accelerate can cause object to be numpy ints instead of bare ints, which the glDeleteTextures function does not accept, explicitly cast to int (#12650)

pythongosssss38ca94599f74
diff --git a/comfy_extras/nodes_glsl.py b/comfy_extras/nodes_glsl.py
index 75ffb6d80..6d210b307 100644
--- a/comfy_extras/nodes_glsl.py
+++ b/comfy_extras/nodes_glsl.py
@@ -717,11 +717,11 @@ def _render_shader_batch(
gl.glUseProgram(0)
for tex in input_textures:
- gl.glDeleteTextures(tex)
+ gl.glDeleteTextures(int(tex))
for tex in output_textures:
- gl.glDeleteTextures(tex)
+ gl.glDeleteTextures(int(tex))
for tex in ping_pong_textures:
- gl.glDeleteTextures(tex)
+ gl.glDeleteTextures(int(tex))
if fbo is not None:
gl.glDeleteFramebuffers(1, [fbo])
for pp_fbo in ping_pong_fbos: