0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-19 20:32:15 +02:00

libobs-opengl: Relax texture format copy check

SRGB and non-SRGB formats are compatible for copy.
This commit is contained in:
tytan652 2024-08-29 14:57:10 +02:00 committed by Ryan Foster
parent 8b31c487ba
commit 26d275223a

View File

@ -978,7 +978,8 @@ void device_copy_texture_region(gs_device_t *device, gs_texture_t *dst,
goto fail;
}
if (dst->format != src->format) {
if (gs_generalize_format(dst->format) !=
gs_generalize_format(src->format)) {
blog(LOG_ERROR, "Source and destination formats do not match");
goto fail;
}