1
0
Эх сурвалжийг харах

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.
jpark37 6 жил өмнө
parent
commit
2ef25ceb85

+ 1 - 1
libobs/obs-source.c

@@ -1509,7 +1509,7 @@ bool set_async_texture_size(struct obs_source *source,
 		source->async_gpu_conversion = true;
 		source->async_gpu_conversion = true;
 
 
 		enum gs_color_format format =
 		enum gs_color_format format =
-			CONVERT_RGB_LIMITED
+			(cur == CONVERT_RGB_LIMITED)
 				? convert_video_format(frame->format)
 				? convert_video_format(frame->format)
 				: GS_BGRX;
 				: GS_BGRX;
 		source->async_texrender =
 		source->async_texrender =