mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-03-05 17:27:42 +08:00
add support for pyopengl < 3.1.4 where the size parameter does not exist (#12555)
This commit is contained in:
parent
04a55d5019
commit
602b2505a4
@ -716,12 +716,12 @@ def _render_shader_batch(
|
|||||||
gl.glBindFramebuffer(gl.GL_FRAMEBUFFER, 0)
|
gl.glBindFramebuffer(gl.GL_FRAMEBUFFER, 0)
|
||||||
gl.glUseProgram(0)
|
gl.glUseProgram(0)
|
||||||
|
|
||||||
if input_textures:
|
for tex in input_textures:
|
||||||
gl.glDeleteTextures(len(input_textures), input_textures)
|
gl.glDeleteTextures(tex)
|
||||||
if output_textures:
|
for tex in output_textures:
|
||||||
gl.glDeleteTextures(len(output_textures), output_textures)
|
gl.glDeleteTextures(tex)
|
||||||
if ping_pong_textures:
|
for tex in ping_pong_textures:
|
||||||
gl.glDeleteTextures(len(ping_pong_textures), ping_pong_textures)
|
gl.glDeleteTextures(tex)
|
||||||
if fbo is not None:
|
if fbo is not None:
|
||||||
gl.glDeleteFramebuffers(1, [fbo])
|
gl.glDeleteFramebuffers(1, [fbo])
|
||||||
for pp_fbo in ping_pong_fbos:
|
for pp_fbo in ping_pong_fbos:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user