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
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue