mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-01-31 09:32:17 -05:00
nv-filters: Fix for size changes with video fx
The && should be a || when sizes are changed. Signed-off-by: pkv <pkv@obsproject.com>
This commit is contained in:
@@ -757,7 +757,7 @@ static void nvvfx_filter_tick(void *data, float t)
|
||||
const uint32_t cy = obs_source_get_base_height(target);
|
||||
|
||||
// initially the sizes are 0
|
||||
if (!cx && !cy) {
|
||||
if (!cx || !cy) {
|
||||
filter->target_valid = false;
|
||||
return;
|
||||
}
|
||||
@@ -771,7 +771,7 @@ static void nvvfx_filter_tick(void *data, float t)
|
||||
}
|
||||
}
|
||||
|
||||
if (cx != filter->width && cy != filter->height) {
|
||||
if (cx != filter->width || cy != filter->height) {
|
||||
filter->images_allocated = false;
|
||||
filter->width = cx;
|
||||
filter->height = cy;
|
||||
|
||||
Reference in New Issue
Block a user