X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=demo.cpp;h=99fec55470cf31d7690ce9a372f58ec6f7b71a95;hb=29072985d0a00a53e5b578a1444cee61a0c9e1f2;hp=e72007b02502da66a5b44b9e416fcdaeaf95475e;hpb=ff9e68a3f5abb179bd7bf9fb84df48327f148583;p=movit diff --git a/demo.cpp b/demo.cpp index e72007b..99fec55 100644 --- a/demo.cpp +++ b/demo.cpp @@ -14,6 +14,8 @@ #include #include +#include + #include #include #include @@ -22,7 +24,6 @@ #include "effect.h" #include "effect_chain.h" #include "util.h" -#include "opengl.h" #include "widgets.h" #include "flat_input.h" @@ -159,7 +160,7 @@ int main(int argc, char **argv) log2(1.0f / movit_texel_subpixel_precision)); unsigned img_w, img_h; - unsigned char *src_img = load_image("blg_wheels_woman_1.jpg", &img_w, &img_h); + unsigned char *src_img = load_image(argc > 1 ? argv[1] : "blg_wheels_woman_1.jpg", &img_w, &img_h); EffectChain chain(WIDTH, HEIGHT); glViewport(0, 0, WIDTH, HEIGHT);