X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=demo.cpp;h=cd6cf88a0286045e55782d8ca2d6a59714c8bb8b;hb=166c94e13ad09dd935e676e9dbc9a1e386417b8f;hp=e72007b02502da66a5b44b9e416fcdaeaf95475e;hpb=b0520c87cba0e8b6f69747257b3d5b1eb1faf836;p=movit diff --git a/demo.cpp b/demo.cpp index e72007b..cd6cf88 100644 --- a/demo.cpp +++ b/demo.cpp @@ -159,7 +159,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);