X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=main.cpp;h=1386a0f1def99395e9296d0ef81fa1cac29329bd;hp=2790bf8b0455a30c88086a40b538b02a3634d1c3;hb=a04ce272078182de6bb49e5ea9834713f3d72cae;hpb=91c70600f2d0a6a42420ee98949cf182859b798f diff --git a/main.cpp b/main.cpp index 2790bf8..1386a0f 100644 --- a/main.cpp +++ b/main.cpp @@ -25,7 +25,6 @@ #include "effect_chain.h" #include "util.h" #include "widgets.h" -#include "texture_enum.h" unsigned char result[WIDTH * HEIGHT * 4]; @@ -36,7 +35,7 @@ float saturation = 1.0f; float radius = 0.3f; float inner_radius = 0.3f; - + void update_hsv(Effect *lift_gamma_gain_effect, Effect *saturation_effect) { RGBTriplet lift(0.0f, 0.0f, 0.0f); @@ -157,11 +156,6 @@ int main(int argc, char **argv) glPixelStorei(GL_UNPACK_ALIGNMENT, 1); glPixelStorei(GL_PACK_ALIGNMENT, 1); - glBindTexture(GL_TEXTURE_2D, SOURCE_IMAGE); - check_error(); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); - check_error(); - unsigned img_w, img_h; unsigned char *src_img = load_image("blg_wheels_woman_1.jpg", &img_w, &img_h);