diff --git a/obs/window-basic-main.cpp b/obs/window-basic-main.cpp index 910f579a5..bcd25411e 100644 --- a/obs/window-basic-main.cpp +++ b/obs/window-basic-main.cpp @@ -519,6 +519,7 @@ void OBSBasic::on_actionRemoveSource_triggered() if (!scene) return; + gs_entercontext(obs_graphics()); obs_scene_addref(scene); QVariant userData = sel->data(Qt::UserRole); @@ -526,6 +527,7 @@ void OBSBasic::on_actionRemoveSource_triggered() obs_sceneitem_destroy(scene, item); obs_scene_release(scene); + gs_leavecontext(); } void OBSBasic::on_actionSourceProperties_triggered()