瀏覽代碼

fixed a bug where the GL context wouldn't load up on macos because the window wasn't shown first

jp9000 12 年之前
父節點
當前提交
ab4e86cf5c
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      obs/obs-app.cpp

+ 2 - 2
obs/obs-app.cpp

@@ -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;
 }