]> git.sesse.net Git - nageru/blobdiff - nageru/scene.cpp
Collapse all the 10-bit flags.
[nageru] / nageru / scene.cpp
index 8506c9b20b68a5290ea0a8a258afe2ec23f94118..11a3d2171de11851f89bf4e3f663a2f7b51780f6 100644 (file)
@@ -422,7 +422,7 @@ Effect *Scene::instantiate_effects(const Block *block, size_t chain_idx, Scene::
                        pixel_format = bmusb::PixelFormat_8BitBGRA;
                } else if (chosen_type == LIVE_INPUT_YCBCR_PLANAR) {
                        pixel_format = bmusb::PixelFormat_8BitYCbCrPlanar;
-               } else if (global_flags.ten_bit_input) {
+               } else if (global_flags.bit_depth > 8) {
                        pixel_format = bmusb::PixelFormat_10BitYCbCr;
                } else {
                        pixel_format = bmusb::PixelFormat_8BitYCbCr;