From a51f55836c684d840f211f4c4b8db344d0a925a6 Mon Sep 17 00:00:00 2001 From: pythongosssss <125205205+pythongosssss@users.noreply.github.com> Date: Mon, 16 Feb 2026 04:13:05 -0800 Subject: [PATCH] Fix crash on 1x1 px images --- comfy_extras/nodes_glsl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy_extras/nodes_glsl.py b/comfy_extras/nodes_glsl.py index a1dcae473..2bd92a4b6 100644 --- a/comfy_extras/nodes_glsl.py +++ b/comfy_extras/nodes_glsl.py @@ -695,7 +695,7 @@ def _render_shader_batch( gl.glBindTexture(gl.GL_TEXTURE_2D, tex) data = gl.glGetTexImage(gl.GL_TEXTURE_2D, 0, gl.GL_RGBA, gl.GL_FLOAT) img = np.frombuffer(data, dtype=np.float32).reshape(height, width, 4) - batch_outputs.append(np.ascontiguousarray(img[::-1, :, :])) + batch_outputs.append(img[::-1, :, :].copy()) # Pad with black images for unused outputs black_img = np.zeros((height, width, 4), dtype=np.float32)