]> git.sesse.net Git - movit/blobdiff - main.cpp
Remove the now obsolete hand-coded fragment program.
[movit] / main.cpp
index 333cdfc1cccb7d6d1f4c2ee0569e6164c0521ba5..0382bdbdecd94b0fe6faf0cf756828a2c199a96c 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -183,8 +183,8 @@ int main(int argc, char **argv)
        inout_format.gamma_curve = GAMMA_sRGB;
 
        chain.add_input(inout_format);
-       Effect *lift_gamma_gain_effect = chain.add_effect(LIFT_GAMMA_GAIN);
-       Effect *saturation_effect = chain.add_effect(SATURATION);
+       Effect *lift_gamma_gain_effect = chain.add_effect(EFFECT_LIFT_GAMMA_GAIN);
+       Effect *saturation_effect = chain.add_effect(EFFECT_SATURATION);
        chain.add_output(inout_format);
        chain.finalize();
 
@@ -241,23 +241,6 @@ int main(int argc, char **argv)
 
        make_hsv_wheel_texture();
 
-       int prog = glCreateProgram();
-       GLhandleARB vs_obj = compile_shader(read_file("vs.glsl"), GL_VERTEX_SHADER);
-       GLhandleARB fs_obj = compile_shader(read_file("fs.glsl"), GL_FRAGMENT_SHADER);
-       glAttachObjectARB(prog, vs_obj);
-       check_error();
-       glAttachObjectARB(prog, fs_obj);
-       check_error();
-       glLinkProgram(prog);
-       check_error();
-
-       GLchar info_log[4096];
-       GLsizei log_length = sizeof(info_log) - 1;
-       log_length = sizeof(info_log) - 1;
-       glGetProgramInfoLog(prog, log_length, &log_length, info_log);
-       info_log[log_length] = 0; 
-       printf("link: %s\n", info_log);
-
        struct timespec start, now;
        int frame = 0, screenshot = 0;
        clock_gettime(CLOCK_MONOTONIC, &start);