From 7e77294eed2d5ffbdfd34177de1537ebe93b8d84 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Thu, 29 Aug 2019 21:44:34 -0700 Subject: [PATCH] libobs: Don't render scene item texture if it's null --- libobs/obs-scene.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libobs/obs-scene.c b/libobs/obs-scene.c index 67d19fd5d..35891a384 100644 --- a/libobs/obs-scene.c +++ b/libobs/obs-scene.c @@ -466,6 +466,10 @@ static void render_item_texture(struct obs_scene_item *item) "render_item_texture"); gs_texture_t *tex = gs_texrender_get_texture(item->item_render); + if (!tex) { + return; + } + gs_effect_t *effect = obs->video.default_effect; enum obs_scale_type type = item->scale_filter; uint32_t cx = gs_texture_get_width(tex);