Commit: 246c001c14d109bd14b571373435cb6c3bac0797
Parent: 32f181f85ef2935b42cd24aef53617fca242d8d1
Author: Randy Palamar
Date: Wed, 13 Nov 2024 09:17:06 -0700
fix completely bogus program setting during shader loading
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/static.c b/static.c
@@ -202,7 +202,7 @@ reload_shaders(BeamformerCtx *ctx, Arena a)
if (shader_id) {
glDeleteProgram(csctx->programs[i]);
csctx->programs[i] = rlLoadComputeShaderProgram(shader_id);
- glUseProgram(csctx->programs[csctx->programs[i]]);
+ glUseProgram(csctx->programs[i]);
glBindBufferBase(GL_UNIFORM_BUFFER, 0, csctx->shared_ubo);
LABEL_GL_OBJECT(GL_PROGRAM, csctx->programs[i], compute_shaders[i].label);
}