change obs_scene_destroy to obs_scene_release, add ability to add scenes, fix name dialog sizing
This commit is contained in:
@@ -32,7 +32,7 @@ using SourceContext = OBSUniqueHandle<obs_source,
|
||||
DECLARE_DELETER(obs_source_release)>;
|
||||
|
||||
using SceneContext = OBSUniqueHandle<obs_scene,
|
||||
DECLARE_DELETER(obs_scene_destroy)>;
|
||||
DECLARE_DELETER(obs_scene_release)>;
|
||||
|
||||
#undef DECLARE_DELETER
|
||||
|
||||
|
@@ -29,7 +29,7 @@ class SceneContext {
|
||||
|
||||
public:
|
||||
inline SceneContext(obs_scene_t scene) : scene(scene) {}
|
||||
inline ~SceneContext() {obs_scene_destroy(scene);}
|
||||
inline ~SceneContext() {obs_scene_release(scene);}
|
||||
inline operator obs_scene_t() {return scene;}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user