From 602b2505a4ffeff4a732b8727ce27d3c2a1ef752 Mon Sep 17 00:00:00 2001 From: pythongosssss <125205205+pythongosssss@users.noreply.github.com> Date: Sat, 21 Feb 2026 14:14:57 +0000 Subject: [PATCH] add support for pyopengl < 3.1.4 where the size parameter does not exist (#12555) --- comfy_extras/nodes_glsl.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/comfy_extras/nodes_glsl.py b/comfy_extras/nodes_glsl.py index 18a35d8467c4..75ffb6d80d94 100644 --- a/comfy_extras/nodes_glsl.py +++ b/comfy_extras/nodes_glsl.py @@ -716,12 +716,12 @@ def _render_shader_batch( gl.glBindFramebuffer(gl.GL_FRAMEBUFFER, 0) gl.glUseProgram(0) - if input_textures: - gl.glDeleteTextures(len(input_textures), input_textures) - if output_textures: - gl.glDeleteTextures(len(output_textures), output_textures) - if ping_pong_textures: - gl.glDeleteTextures(len(ping_pong_textures), ping_pong_textures) + for tex in input_textures: + gl.glDeleteTextures(tex) + for tex in output_textures: + gl.glDeleteTextures(tex) + for tex in ping_pong_textures: + gl.glDeleteTextures(tex) if fbo is not None: gl.glDeleteFramebuffers(1, [fbo]) for pp_fbo in ping_pong_fbos: