X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=effect_chain.cpp;h=a90f5f3a64db0ffea0427cc009fc106c56eebf0a;hp=0f2e69d36be2a1a06409a3a750710947b98d7d2d;hb=49941686f9e5c86f56b5f3aba7a628d72bc14533;hpb=2e4309fd8af9ca0a3656a584f8ed8b3fc634263f diff --git a/effect_chain.cpp b/effect_chain.cpp index 0f2e69d..a90f5f3 100644 --- a/effect_chain.cpp +++ b/effect_chain.cpp @@ -209,6 +209,10 @@ void EffectChain::render_to_screen(unsigned char *src) format = GL_RGB; } else if (input_format.pixel_format == FORMAT_RGBA) { format = GL_RGBA; + } else if (input_format.pixel_format == FORMAT_BGR) { + format = GL_BGR; + } else if (input_format.pixel_format == FORMAT_BGRA) { + format = GL_BGRA; } else { assert(false); }