fix: set gl context before freeing shaders
This commit is contained in:
+2
-2
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user