aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/shader.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2026-04-19 00:42:00 +0200
committerdec05eba <dec05eba@protonmail.com>2026-04-19 00:42:00 +0200
commit5d03193f29d6a84bc33bdf5fb552aee16605d8e1 (patch)
treeddabf1ce3fd5566f1f4cd5d492b38a00a6182d92 /src/shader.c
parent2f4a906b785346d5ff4d2db0a442d91d90276b8a (diff)
Fix compile error with old vulkan header: ifdef check vulkan video encoding
Diffstat (limited to 'src/shader.c')
-rw-r--r--src/shader.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shader.c b/src/shader.c
index d952d5d..f20ebb2 100644
--- a/src/shader.c
+++ b/src/shader.c
@@ -91,6 +91,7 @@ static unsigned int load_program(gsr_egl *egl, const char *vertex_shader, const
if(!success) {
if(program_id)
egl->glDeleteProgram(program_id);
+ program_id = 0;
}
if(fragment_shader_id)
egl->glDeleteShader(fragment_shader_id);