浏览代码

libobs: Fix wrong enum in obs_sceneitem_get_blending_method

Detected by PVS Studio.
Richard Stanway 3 年之前
父节点
当前提交
0bc955bdf2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      libobs/obs-scene.c

+ 1 - 1
libobs/obs-scene.c

@@ -3021,7 +3021,7 @@ obs_sceneitem_get_blending_method(obs_sceneitem_t *item)
 {
 	return obs_ptr_valid(item, "obs_sceneitem_get_blending_method")
 		       ? item->blend_method
-		       : OBS_BLEND_NORMAL;
+		       : OBS_BLEND_METHOD_DEFAULT;
 }
 
 void obs_sceneitem_set_blending_mode(obs_sceneitem_t *item,