]> git.sesse.net Git - movit/blobdiff - main.cpp
Remove the now obsolete hand-coded fragment program.
[movit] / main.cpp
index cdf4f615f96c74b53e81cca02244527f23c9995f..0382bdbdecd94b0fe6faf0cf756828a2c199a96c 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -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);