feat(video): can build without video

This commit is contained in:
2025-11-23 00:45:54 +01:00
parent d9074c366e
commit 01266e7823
10 changed files with 43 additions and 19 deletions
+10 -8
View File
@@ -534,8 +534,7 @@ static void use_program(const ShaderProgram *program, int i, bool output,
}
void shaders_init(ShaderProgram *program, const Project *project,
const SharedContext *context, VideoCaptureArray *inputs,
bool rebind) {
const SharedContext *context, bool rebind) {
if (!rebind) {
program->error = false;
program->last_resolution[0] = context->resolution[0];
@@ -571,12 +570,6 @@ void shaders_init(ShaderProgram *program, const Project *project,
return;
}
init_input(program, &project->config, inputs);
if (check_glerror(program)) {
return;
}
init_framebuffers(program, &project->config);
if (check_glerror(program)) {
@@ -603,6 +596,15 @@ void shaders_init(ShaderProgram *program, const Project *project,
}
}
void shaders_link_inputs(ShaderProgram *program, const Project *project,
VideoCaptureArray *inputs) {
init_input(program, &project->config, inputs);
if (check_glerror(program)) {
return;
}
}
void shaders_update(ShaderProgram *program, const File *fragment_shader,
unsigned int i, const Project *project) {
bool result;