{"action":"created","comment":{"url":"https://api.github.com/repos/mono/MonoGame/pulls/comments/27758137","id":27758137,"diff_hunk":"@@ -88,11 +88,15 @@ internal void SetVertexAttributeArray(bool[] attrs)\n             }\n         }\n \n-        private void PlatformSetup()\n+       private void PlatformSetup()\n         {\n #if WINDOWS || LINUX || ANGLE\n             GraphicsMode mode = GraphicsMode.Default;\n-            var wnd = (Game.Instance.Window as OpenTKGameWindow).Window.WindowInfo;\n+\n+            var wnd = OpenTK.Platform.Utilities.CreateWindowsWindowInfo(PresentationParameters.DeviceWindowHandle);","path":"MonoGame.Framework/Graphics/GraphicsDevice.OpenGL.cs","position":11,"original_position":11,"commit_id":"9084525a34dc26dff194cb89bb4ee87a9439aeab","original_commit_id":"9084525a34dc26dff194cb89bb4ee87a9439aeab","user":{"login":"tomspilman","id":103522,"avatar_url":"https://avatars.githubusercontent.com/u/103522?v=3","gravatar_id":"","url":"https://api.github.com/users/tomspilman","html_url":"https://github.com/tomspilman","followers_url":"https://api.github.com/users/tomspilman/followers","following_url":"https://api.github.com/users/tomspilman/following{/other_user}","gists_url":"https://api.github.com/users/tomspilman/gists{/gist_id}","starred_url":"https://api.github.com/users/tomspilman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomspilman/subscriptions","organizations_url":"https://api.github.com/users/tomspilman/orgs","repos_url":"https://api.github.com/users/tomspilman/repos","events_url":"https://api.github.com/users/tomspilman/events{/privacy}","received_events_url":"https://api.github.com/users/tomspilman/received_events","type":"User","site_admin":false},"body":"@cra0zy - The point would be to not use `Game.Instance`.  We should be able to get what we need from `PresentationParameters.DeviceWindowHandle`.  `GraphicsDevice` needs to be independent from `Game`.","created_at":"2015-04-03T21:46:42Z","updated_at":"2015-04-03T21:46:42Z","html_url":"https://github.com/mono/MonoGame/pull/3693#discussion_r27758137","pull_request_url":"https://api.github.com/repos/mono/MonoGame/pulls/3693","_links":{"self":{"href":"https://api.github.com/repos/mono/MonoGame/pulls/comments/27758137"},"html":{"href":"https://github.com/mono/MonoGame/pull/3693#discussion_r27758137"},"pull_request":{"href":"https://api.github.com/repos/mono/MonoGame/pulls/3693"}}},"pull_request":{"url":"https://api.github.com/repos/mono/MonoGame/pulls/3693","id":32610516,"html_url":"https://github.com/mono/MonoGame/pull/3693","diff_url":"https://github.com/mono/MonoGame/pull/3693.diff","patch_url":"https://github.com/mono/MonoGame/pull/3693.patch","issue_url":"https://api.github.com/repos/mono/MonoGame/issues/3693","number":3693,"state":"open","locked":false,"title":"Update GraphicsDevice.OpenGL.cs","user":{"login":"StealthKill","id":6444001,"avatar_url":"https://avatars.githubusercontent.com/u/6444001?v=3","gravatar_id":"","url":"https://api.github.com/users/StealthKill","html_url":"https://github.com/StealthKill","followers_url":"https://api.github.com/users/StealthKill/followers","following_url":"https://api.github.com/users/StealthKill/following{/other_user}","gists_url":"https://api.github.com/users/StealthKill/gists{/gist_id}","starred_url":"https://api.github.com/users/StealthKill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StealthKill/subscriptions","organizations_url":"https://api.github.com/users/StealthKill/orgs","repos_url":"https://api.github.com/users/StealthKill/repos","events_url":"https://api.github.com/users/StealthKill/events{/privacy}","received_events_url":"https://api.github.com/users/StealthKill/received_events","type":"User","site_admin":false},"body":"I changed the PlatformSetup() function a bit. Works now With my Editor which uses GLControl and my Game.","created_at":"2015-04-03T19:27:34Z","updated_at":"2015-04-03T21:46:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0ad99b10db67cbe27e2d44b26801663463183721","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mono/MonoGame/pulls/3693/commits","review_comments_url":"https://api.github.com/repos/mono/MonoGame/pulls/3693/comments","review_comment_url":"https://api.github.com/repos/mono/MonoGame/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mono/MonoGame/issues/3693/comments","statuses_url":"https://api.github.com/repos/mono/MonoGame/statuses/9084525a34dc26dff194cb89bb4ee87a9439aeab","head":{"label":"StealthKill:develop","ref":"develop","sha":"9084525a34dc26dff194cb89bb4ee87a9439aeab","user":{"login":"StealthKill","id":6444001,"avatar_url":"https://avatars.githubusercontent.com/u/6444001?v=3","gravatar_id":"","url":"https://api.github.com/users/StealthKill","html_url":"https://github.com/StealthKill","followers_url":"https://api.github.com/users/StealthKill/followers","following_url":"https://api.github.com/users/StealthKill/following{/other_user}","gists_url":"https://api.github.com/users/StealthKill/gists{/gist_id}","starred_url":"https://api.github.com/users/StealthKill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StealthKill/subscriptions","organizations_url":"https://api.github.com/users/StealthKill/orgs","repos_url":"https://api.github.com/users/StealthKill/repos","events_url":"https://api.github.com/users/StealthKill/events{/privacy}","received_events_url":"https://api.github.com/users/StealthKill/received_events","type":"User","site_admin":false},"repo":{"id":33378804,"name":"MonoGame","full_name":"StealthKill/MonoGame","owner":{"login":"StealthKill","id":6444001,"avatar_url":"https://avatars.githubusercontent.com/u/6444001?v=3","gravatar_id":"","url":"https://api.github.com/users/StealthKill","html_url":"https://github.com/StealthKill","followers_url":"https://api.github.com/users/StealthKill/followers","following_url":"https://api.github.com/users/StealthKill/following{/other_user}","gists_url":"https://api.github.com/users/StealthKill/gists{/gist_id}","starred_url":"https://api.github.com/users/StealthKill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StealthKill/subscriptions","organizations_url":"https://api.github.com/users/StealthKill/orgs","repos_url":"https://api.github.com/users/StealthKill/repos","events_url":"https://api.github.com/users/StealthKill/events{/privacy}","received_events_url":"https://api.github.com/users/StealthKill/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/StealthKill/MonoGame","description":"One framework for creating powerful cross-platform games.","fork":true,"url":"https://api.github.com/repos/StealthKill/MonoGame","forks_url":"https://api.github.com/repos/StealthKill/MonoGame/forks","keys_url":"https://api.github.com/repos/StealthKill/MonoGame/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StealthKill/MonoGame/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StealthKill/MonoGame/teams","hooks_url":"https://api.github.com/repos/StealthKill/MonoGame/hooks","issue_events_url":"https://api.github.com/repos/StealthKill/MonoGame/issues/events{/number}","events_url":"https://api.github.com/repos/StealthKill/MonoGame/events","assignees_url":"https://api.github.com/repos/StealthKill/MonoGame/assignees{/user}","branches_url":"https://api.github.com/repos/StealthKill/MonoGame/branches{/branch}","tags_url":"https://api.github.com/repos/StealthKill/MonoGame/tags","blobs_url":"https://api.github.com/repos/StealthKill/MonoGame/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StealthKill/MonoGame/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StealthKill/MonoGame/git/refs{/sha}","trees_url":"https://api.github.com/repos/StealthKill/MonoGame/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StealthKill/MonoGame/statuses/{sha}","languages_url":"https://api.github.com/repos/StealthKill/MonoGame/languages","stargazers_url":"https://api.github.com/repos/StealthKill/MonoGame/stargazers","contributors_url":"https://api.github.com/repos/StealthKill/MonoGame/contributors","subscribers_url":"https://api.github.com/repos/StealthKill/MonoGame/subscribers","subscription_url":"https://api.github.com/repos/StealthKill/MonoGame/subscription","commits_url":"https://api.github.com/repos/StealthKill/MonoGame/commits{/sha}","git_commits_url":"https://api.github.com/repos/StealthKill/MonoGame/git/commits{/sha}","comments_url":"https://api.github.com/repos/StealthKill/MonoGame/comments{/number}","issue_comment_url":"https://api.github.com/repos/StealthKill/MonoGame/issues/comments{/number}","contents_url":"https://api.github.com/repos/StealthKill/MonoGame/contents/{+path}","compare_url":"https://api.github.com/repos/StealthKill/MonoGame/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StealthKill/MonoGame/merges","archive_url":"https://api.github.com/repos/StealthKill/MonoGame/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StealthKill/MonoGame/downloads","issues_url":"https://api.github.com/repos/StealthKill/MonoGame/issues{/number}","pulls_url":"https://api.github.com/repos/StealthKill/MonoGame/pulls{/number}","milestones_url":"https://api.github.com/repos/StealthKill/MonoGame/milestones{/number}","notifications_url":"https://api.github.com/repos/StealthKill/MonoGame/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StealthKill/MonoGame/labels{/name}","releases_url":"https://api.github.com/repos/StealthKill/MonoGame/releases{/id}","created_at":"2015-04-03T19:19:59Z","updated_at":"2015-04-03T19:23:48Z","pushed_at":"2015-04-03T19:23:47Z","git_url":"git://github.com/StealthKill/MonoGame.git","ssh_url":"git@github.com:StealthKill/MonoGame.git","clone_url":"https://github.com/StealthKill/MonoGame.git","svn_url":"https://github.com/StealthKill/MonoGame","homepage":"http://www.monogame.net","size":316057,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"mono:develop","ref":"develop","sha":"d3d3dd8922ffa9041b6d9c32ed1bf1205059446c","user":{"login":"mono","id":53395,"avatar_url":"https://avatars.githubusercontent.com/u/53395?v=3","gravatar_id":"","url":"https://api.github.com/users/mono","html_url":"https://github.com/mono","followers_url":"https://api.github.com/users/mono/followers","following_url":"https://api.github.com/users/mono/following{/other_user}","gists_url":"https://api.github.com/users/mono/gists{/gist_id}","starred_url":"https://api.github.com/users/mono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mono/subscriptions","organizations_url":"https://api.github.com/users/mono/orgs","repos_url":"https://api.github.com/users/mono/repos","events_url":"https://api.github.com/users/mono/events{/privacy}","received_events_url":"https://api.github.com/users/mono/received_events","type":"Organization","site_admin":false},"repo":{"id":1579990,"name":"MonoGame","full_name":"mono/MonoGame","owner":{"login":"mono","id":53395,"avatar_url":"https://avatars.githubusercontent.com/u/53395?v=3","gravatar_id":"","url":"https://api.github.com/users/mono","html_url":"https://github.com/mono","followers_url":"https://api.github.com/users/mono/followers","following_url":"https://api.github.com/users/mono/following{/other_user}","gists_url":"https://api.github.com/users/mono/gists{/gist_id}","starred_url":"https://api.github.com/users/mono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mono/subscriptions","organizations_url":"https://api.github.com/users/mono/orgs","repos_url":"https://api.github.com/users/mono/repos","events_url":"https://api.github.com/users/mono/events{/privacy}","received_events_url":"https://api.github.com/users/mono/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mono/MonoGame","description":"One framework for creating powerful cross-platform games.","fork":false,"url":"https://api.github.com/repos/mono/MonoGame","forks_url":"https://api.github.com/repos/mono/MonoGame/forks","keys_url":"https://api.github.com/repos/mono/MonoGame/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mono/MonoGame/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mono/MonoGame/teams","hooks_url":"https://api.github.com/repos/mono/MonoGame/hooks","issue_events_url":"https://api.github.com/repos/mono/MonoGame/issues/events{/number}","events_url":"https://api.github.com/repos/mono/MonoGame/events","assignees_url":"https://api.github.com/repos/mono/MonoGame/assignees{/user}","branches_url":"https://api.github.com/repos/mono/MonoGame/branches{/branch}","tags_url":"https://api.github.com/repos/mono/MonoGame/tags","blobs_url":"https://api.github.com/repos/mono/MonoGame/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mono/MonoGame/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mono/MonoGame/git/refs{/sha}","trees_url":"https://api.github.com/repos/mono/MonoGame/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mono/MonoGame/statuses/{sha}","languages_url":"https://api.github.com/repos/mono/MonoGame/languages","stargazers_url":"https://api.github.com/repos/mono/MonoGame/stargazers","contributors_url":"https://api.github.com/repos/mono/MonoGame/contributors","subscribers_url":"https://api.github.com/repos/mono/MonoGame/subscribers","subscription_url":"https://api.github.com/repos/mono/MonoGame/subscription","commits_url":"https://api.github.com/repos/mono/MonoGame/commits{/sha}","git_commits_url":"https://api.github.com/repos/mono/MonoGame/git/commits{/sha}","comments_url":"https://api.github.com/repos/mono/MonoGame/comments{/number}","issue_comment_url":"https://api.github.com/repos/mono/MonoGame/issues/comments{/number}","contents_url":"https://api.github.com/repos/mono/MonoGame/contents/{+path}","compare_url":"https://api.github.com/repos/mono/MonoGame/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mono/MonoGame/merges","archive_url":"https://api.github.com/repos/mono/MonoGame/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mono/MonoGame/downloads","issues_url":"https://api.github.com/repos/mono/MonoGame/issues{/number}","pulls_url":"https://api.github.com/repos/mono/MonoGame/pulls{/number}","milestones_url":"https://api.github.com/repos/mono/MonoGame/milestones{/number}","notifications_url":"https://api.github.com/repos/mono/MonoGame/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mono/MonoGame/labels{/name}","releases_url":"https://api.github.com/repos/mono/MonoGame/releases{/id}","created_at":"2011-04-07T00:23:40Z","updated_at":"2015-04-03T19:19:22Z","pushed_at":"2015-04-03T19:27:34Z","git_url":"git://github.com/mono/MonoGame.git","ssh_url":"git@github.com:mono/MonoGame.git","clone_url":"https://github.com/mono/MonoGame.git","svn_url":"https://github.com/mono/MonoGame","homepage":"http://www.monogame.net","size":316057,"stargazers_count":2684,"watchers_count":2684,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1507,"mirror_url":null,"open_issues_count":561,"forks":1507,"open_issues":561,"watchers":2684,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/mono/MonoGame/pulls/3693"},"html":{"href":"https://github.com/mono/MonoGame/pull/3693"},"issue":{"href":"https://api.github.com/repos/mono/MonoGame/issues/3693"},"comments":{"href":"https://api.github.com/repos/mono/MonoGame/issues/3693/comments"},"review_comments":{"href":"https://api.github.com/repos/mono/MonoGame/pulls/3693/comments"},"review_comment":{"href":"https://api.github.com/repos/mono/MonoGame/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mono/MonoGame/pulls/3693/commits"},"statuses":{"href":"https://api.github.com/repos/mono/MonoGame/statuses/9084525a34dc26dff194cb89bb4ee87a9439aeab"}}}}