mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
fixed a bug where the GL context wouldn't load up on macos because the window wasn't shown first
This commit is contained in:
+2
-2
@@ -203,6 +203,8 @@ bool OBSApp::OnInit()
|
||||
|
||||
wxSize size = mainWindow->GetPreviewPanel()->GetClientSize();
|
||||
|
||||
mainWindow->Show();
|
||||
|
||||
/* this is a test */
|
||||
struct obs_video_info ovi;
|
||||
ovi.graphics_module = "libobs-opengl";
|
||||
@@ -220,8 +222,6 @@ bool OBSApp::OnInit()
|
||||
|
||||
if (!obs_reset_video(&ovi))
|
||||
return false;
|
||||
|
||||
mainWindow->Show();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user