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:
parent
8b31c487ba
commit
26d275223a
@ -978,7 +978,8 @@ void device_copy_texture_region(gs_device_t *device, gs_texture_t *dst,
|
|||||||
goto fail;
|
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");
|
blog(LOG_ERROR, "Source and destination formats do not match");
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user