From a1012c3f2c96c8dec069a4e30507acb16db6a05f Mon Sep 17 00:00:00 2001 From: jp9000 Date: Fri, 1 Jun 2018 02:31:36 -0700 Subject: [PATCH] libobs: Do not draw item texture if source size 0 --- libobs/obs-scene.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libobs/obs-scene.c b/libobs/obs-scene.c index 1010e2e77..2da6e1fcb 100644 --- a/libobs/obs-scene.c +++ b/libobs/obs-scene.c @@ -464,6 +464,10 @@ static inline void render_item(struct obs_scene_item *item) if (item->item_render) { uint32_t width = obs_source_get_width(item->source); uint32_t height = obs_source_get_height(item->source); + + if (!width || !height) + return; + uint32_t cx = calc_cx(item, width); uint32_t cy = calc_cy(item, height);