fix: set gl context before freeing shaders

This commit is contained in:
2026-05-16 18:32:08 +02:00
parent 3ae3b23c2a
commit 39e1fcc709
+2 -2
View File
@@ -387,8 +387,6 @@ static void shutdown() {
state_save(&context, project.state_config);
}
shaders_free(&program);
if (window_output != NULL) {
window_use(window_output, &context);
@@ -401,6 +399,8 @@ static void shutdown() {
shaders_free_window(&program, init_params.output);
}
shaders_free(&program);
#ifdef VIDEO_IN
free_video_captures();
#endif /* VIDEO_IN */