X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=main.cpp;h=b41c9ed0789f219d8eba163457e0abe61098cda9;hb=6eb839737216564bcaf4645b7ebf6ea9efc2da09;hp=0a92aed593826e091b82b437482ae90c6d238eeb;hpb=dae484d2ac79b828fe31d7416fc5838a6d3341ef;p=movit diff --git a/main.cpp b/main.cpp index 0a92aed..b41c9ed 100644 --- a/main.cpp +++ b/main.cpp @@ -96,14 +96,14 @@ unsigned char *load_image(const char *filename, unsigned *w, unsigned *h) rgba_fmt.Rloss = rgba_fmt.Gloss = rgba_fmt.Bloss = rgba_fmt.Aloss = 0; // NOTE: Assumes little endian. - rgba_fmt.Rmask = 0x000000ff; + rgba_fmt.Rmask = 0x00ff0000; rgba_fmt.Gmask = 0x0000ff00; - rgba_fmt.Bmask = 0x00ff0000; + rgba_fmt.Bmask = 0x000000ff; rgba_fmt.Amask = 0xff000000; - rgba_fmt.Rshift = 0; + rgba_fmt.Rshift = 16; rgba_fmt.Gshift = 8; - rgba_fmt.Bshift = 16; + rgba_fmt.Bshift = 0; rgba_fmt.Ashift = 24; rgba_fmt.colorkey = 0; @@ -150,7 +150,7 @@ int main(int argc, char **argv) glPixelStorei(GL_PACK_ALIGNMENT, 1); 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("test.jpg", &img_w, &img_h); EffectChain chain(WIDTH, HEIGHT);