Browse Source

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

jp9000 12 years ago
parent
commit
ab4e86cf5c
1 changed files with 2 additions and 2 deletions
  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;
 }