YCbCr output support
Compare changes
- Niklas Haas authored
The scaler code only checks whether or not the FBOFMT is storable, but in the case of e.g. draw_overlays, we have to check the actual FBO (provided by the user) instead. Solve this by just checking both. (Note: In theory, if the FBO is storable but FBOFMT is not, this would be a false negative. But whatever.)
+ 7
− 6
@@ -446,7 +446,7 @@ static struct sampler_info sample_src_info(struct pl_renderer *rr,
@@ -486,7 +486,7 @@ static void dispatch_sampler(struct pass_state *pass, struct pl_shader *sh,
@@ -598,7 +598,7 @@ static void draw_overlays(struct pass_state *pass, const struct pl_tex *fbo,
@@ -1178,7 +1178,7 @@ static bool pass_read_image(struct pl_renderer *rr, struct pass_state *pass,
@@ -1366,7 +1366,7 @@ static bool pass_scale_main(struct pl_renderer *rr, struct pass_state *pass,
@@ -1540,7 +1540,8 @@ fallback: