mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-15 07:44:10 +00:00
libobs: Don't render scene item texture if it's null
This commit is contained in:
parent
1a83f3c287
commit
7e77294eed
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue