浏览代码

libobs: Avoid request graphics lock after full_lock(scene).

As logic in video render thread, gs lock (obs_enter_graphics) should be requested before full_lock(scene).
However in function obs_sceneitem_group_ungroup called from UI thread, the order for requesting locks are contrary.
wangshaohui 4 年之前
父节点
当前提交
66c27c2cea
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      libobs/obs-scene.c

+ 0 - 2
libobs/obs-scene.c

@@ -1867,9 +1867,7 @@ static obs_sceneitem_t *obs_scene_add_internal(obs_scene_t *scene,
 	}
 
 	if (item_texture_enabled(item)) {
-		obs_enter_graphics();
 		item->item_render = gs_texrender_create(GS_RGBA, GS_ZS_NONE);
-		obs_leave_graphics();
 	}
 
 	full_lock(scene);