From 2ef25ceb85f1d823e6c3af591e6ee25e9fe68752 Mon Sep 17 00:00:00 2001 From: jpark37 Date: Thu, 27 Jun 2019 08:49:53 -0500 Subject: [PATCH] libobs: Fix format selection Fix ternary test to use BGRX render targets for YUV to RGB conversions. The previous behavior may have been fine though since the shaders fill the alpha channel with 1.0 anyway. --- libobs/obs-source.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libobs/obs-source.c b/libobs/obs-source.c index 1b9acfe91..34bb24671 100644 --- a/libobs/obs-source.c +++ b/libobs/obs-source.c @@ -1509,7 +1509,7 @@ bool set_async_texture_size(struct obs_source *source, source->async_gpu_conversion = true; enum gs_color_format format = - CONVERT_RGB_LIMITED + (cur == CONVERT_RGB_LIMITED) ? convert_video_format(frame->format) : GS_BGRX; source->async_texrender =