{"action":"created","comment":{"url":"https://api.github.com/repos/kripken/emscripten/pulls/comments/29616058","id":29616058,"diff_hunk":"@@ -660,11 +660,18 @@ var LibraryGL = {\n         Module.print('Could not create canvas: ' + [errorInfo, e, JSON.stringify(webGLContextAttributes)]);\n         return 0;\n       }\n+\n #if GL_DEBUG\n       function wrapDebugGL(ctx) {\n \n         var printObjectList = [];\n \n+        function myDump(arg){\n+          if(window.dump){","path":"src/library_gl.js","position":11,"original_position":11,"commit_id":"7a41dc0005c62d280c1434b85919328cf17661e5","original_commit_id":"7a41dc0005c62d280c1434b85919328cf17661e5","user":{"login":"kripken","id":173661,"avatar_url":"https://avatars.githubusercontent.com/u/173661?v=3","gravatar_id":"","url":"https://api.github.com/users/kripken","html_url":"https://github.com/kripken","followers_url":"https://api.github.com/users/kripken/followers","following_url":"https://api.github.com/users/kripken/following{/other_user}","gists_url":"https://api.github.com/users/kripken/gists{/gist_id}","starred_url":"https://api.github.com/users/kripken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kripken/subscriptions","organizations_url":"https://api.github.com/users/kripken/orgs","repos_url":"https://api.github.com/users/kripken/repos","events_url":"https://api.github.com/users/kripken/events{/privacy}","received_events_url":"https://api.github.com/users/kripken/received_events","type":"User","site_admin":false},"body":"if window.dump doesn't exist, we do nothing - perhaps best to warn on that?","created_at":"2015-05-04T19:44:04Z","updated_at":"2015-05-04T19:44:04Z","html_url":"https://github.com/kripken/emscripten/pull/3435#discussion_r29616058","pull_request_url":"https://api.github.com/repos/kripken/emscripten/pulls/3435","_links":{"self":{"href":"https://api.github.com/repos/kripken/emscripten/pulls/comments/29616058"},"html":{"href":"https://github.com/kripken/emscripten/pull/3435#discussion_r29616058"},"pull_request":{"href":"https://api.github.com/repos/kripken/emscripten/pulls/3435"}}},"pull_request":{"url":"https://api.github.com/repos/kripken/emscripten/pulls/3435","id":34626963,"html_url":"https://github.com/kripken/emscripten/pull/3435","diff_url":"https://github.com/kripken/emscripten/pull/3435.diff","patch_url":"https://github.com/kripken/emscripten/pull/3435.patch","issue_url":"https://api.github.com/repos/kripken/emscripten/issues/3435","number":3435,"state":"open","locked":false,"title":"GL debug context","user":{"login":"croes","id":1710736,"avatar_url":"https://avatars.githubusercontent.com/u/1710736?v=3","gravatar_id":"","url":"https://api.github.com/users/croes","html_url":"https://github.com/croes","followers_url":"https://api.github.com/users/croes/followers","following_url":"https://api.github.com/users/croes/following{/other_user}","gists_url":"https://api.github.com/users/croes/gists{/gist_id}","starred_url":"https://api.github.com/users/croes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/croes/subscriptions","organizations_url":"https://api.github.com/users/croes/orgs","repos_url":"https://api.github.com/users/croes/repos","events_url":"https://api.github.com/users/croes/events{/privacy}","received_events_url":"https://api.github.com/users/croes/received_events","type":"User","site_admin":false},"body":"GL_DEBUG did not print out calls to WebGL. See issue [#3433](https://github.com/kripken/emscripten/issues/3433) This pull request proposes a fix.","created_at":"2015-05-04T10:11:47Z","updated_at":"2015-05-04T19:44:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kripken/emscripten/pulls/3435/commits","review_comments_url":"https://api.github.com/repos/kripken/emscripten/pulls/3435/comments","review_comment_url":"https://api.github.com/repos/kripken/emscripten/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kripken/emscripten/issues/3435/comments","statuses_url":"https://api.github.com/repos/kripken/emscripten/statuses/7a41dc0005c62d280c1434b85919328cf17661e5","head":{"label":"croes:gl_debug_context","ref":"gl_debug_context","sha":"7a41dc0005c62d280c1434b85919328cf17661e5","user":{"login":"croes","id":1710736,"avatar_url":"https://avatars.githubusercontent.com/u/1710736?v=3","gravatar_id":"","url":"https://api.github.com/users/croes","html_url":"https://github.com/croes","followers_url":"https://api.github.com/users/croes/followers","following_url":"https://api.github.com/users/croes/following{/other_user}","gists_url":"https://api.github.com/users/croes/gists{/gist_id}","starred_url":"https://api.github.com/users/croes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/croes/subscriptions","organizations_url":"https://api.github.com/users/croes/orgs","repos_url":"https://api.github.com/users/croes/repos","events_url":"https://api.github.com/users/croes/events{/privacy}","received_events_url":"https://api.github.com/users/croes/received_events","type":"User","site_admin":false},"repo":{"id":35026780,"name":"emscripten","full_name":"croes/emscripten","owner":{"login":"croes","id":1710736,"avatar_url":"https://avatars.githubusercontent.com/u/1710736?v=3","gravatar_id":"","url":"https://api.github.com/users/croes","html_url":"https://github.com/croes","followers_url":"https://api.github.com/users/croes/followers","following_url":"https://api.github.com/users/croes/following{/other_user}","gists_url":"https://api.github.com/users/croes/gists{/gist_id}","starred_url":"https://api.github.com/users/croes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/croes/subscriptions","organizations_url":"https://api.github.com/users/croes/orgs","repos_url":"https://api.github.com/users/croes/repos","events_url":"https://api.github.com/users/croes/events{/privacy}","received_events_url":"https://api.github.com/users/croes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/croes/emscripten","description":"Emscripten: An LLVM-to-JavaScript Compiler","fork":true,"url":"https://api.github.com/repos/croes/emscripten","forks_url":"https://api.github.com/repos/croes/emscripten/forks","keys_url":"https://api.github.com/repos/croes/emscripten/keys{/key_id}","collaborators_url":"https://api.github.com/repos/croes/emscripten/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/croes/emscripten/teams","hooks_url":"https://api.github.com/repos/croes/emscripten/hooks","issue_events_url":"https://api.github.com/repos/croes/emscripten/issues/events{/number}","events_url":"https://api.github.com/repos/croes/emscripten/events","assignees_url":"https://api.github.com/repos/croes/emscripten/assignees{/user}","branches_url":"https://api.github.com/repos/croes/emscripten/branches{/branch}","tags_url":"https://api.github.com/repos/croes/emscripten/tags","blobs_url":"https://api.github.com/repos/croes/emscripten/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/croes/emscripten/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/croes/emscripten/git/refs{/sha}","trees_url":"https://api.github.com/repos/croes/emscripten/git/trees{/sha}","statuses_url":"https://api.github.com/repos/croes/emscripten/statuses/{sha}","languages_url":"https://api.github.com/repos/croes/emscripten/languages","stargazers_url":"https://api.github.com/repos/croes/emscripten/stargazers","contributors_url":"https://api.github.com/repos/croes/emscripten/contributors","subscribers_url":"https://api.github.com/repos/croes/emscripten/subscribers","subscription_url":"https://api.github.com/repos/croes/emscripten/subscription","commits_url":"https://api.github.com/repos/croes/emscripten/commits{/sha}","git_commits_url":"https://api.github.com/repos/croes/emscripten/git/commits{/sha}","comments_url":"https://api.github.com/repos/croes/emscripten/comments{/number}","issue_comment_url":"https://api.github.com/repos/croes/emscripten/issues/comments{/number}","contents_url":"https://api.github.com/repos/croes/emscripten/contents/{+path}","compare_url":"https://api.github.com/repos/croes/emscripten/compare/{base}...{head}","merges_url":"https://api.github.com/repos/croes/emscripten/merges","archive_url":"https://api.github.com/repos/croes/emscripten/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/croes/emscripten/downloads","issues_url":"https://api.github.com/repos/croes/emscripten/issues{/number}","pulls_url":"https://api.github.com/repos/croes/emscripten/pulls{/number}","milestones_url":"https://api.github.com/repos/croes/emscripten/milestones{/number}","notifications_url":"https://api.github.com/repos/croes/emscripten/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/croes/emscripten/labels{/name}","releases_url":"https://api.github.com/repos/croes/emscripten/releases{/id}","created_at":"2015-05-04T09:43:30Z","updated_at":"2015-05-04T09:43:50Z","pushed_at":"2015-05-04T11:25:28Z","git_url":"git://github.com/croes/emscripten.git","ssh_url":"git@github.com:croes/emscripten.git","clone_url":"https://github.com/croes/emscripten.git","svn_url":"https://github.com/croes/emscripten","homepage":"","size":219953,"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":"master"}},"base":{"label":"kripken:incoming","ref":"incoming","sha":"c0a78bcbf0e90e8d72430bb9fc87da1b74965335","user":{"login":"kripken","id":173661,"avatar_url":"https://avatars.githubusercontent.com/u/173661?v=3","gravatar_id":"","url":"https://api.github.com/users/kripken","html_url":"https://github.com/kripken","followers_url":"https://api.github.com/users/kripken/followers","following_url":"https://api.github.com/users/kripken/following{/other_user}","gists_url":"https://api.github.com/users/kripken/gists{/gist_id}","starred_url":"https://api.github.com/users/kripken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kripken/subscriptions","organizations_url":"https://api.github.com/users/kripken/orgs","repos_url":"https://api.github.com/users/kripken/repos","events_url":"https://api.github.com/users/kripken/events{/privacy}","received_events_url":"https://api.github.com/users/kripken/received_events","type":"User","site_admin":false},"repo":{"id":1357796,"name":"emscripten","full_name":"kripken/emscripten","owner":{"login":"kripken","id":173661,"avatar_url":"https://avatars.githubusercontent.com/u/173661?v=3","gravatar_id":"","url":"https://api.github.com/users/kripken","html_url":"https://github.com/kripken","followers_url":"https://api.github.com/users/kripken/followers","following_url":"https://api.github.com/users/kripken/following{/other_user}","gists_url":"https://api.github.com/users/kripken/gists{/gist_id}","starred_url":"https://api.github.com/users/kripken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kripken/subscriptions","organizations_url":"https://api.github.com/users/kripken/orgs","repos_url":"https://api.github.com/users/kripken/repos","events_url":"https://api.github.com/users/kripken/events{/privacy}","received_events_url":"https://api.github.com/users/kripken/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kripken/emscripten","description":"Emscripten: An LLVM-to-JavaScript Compiler","fork":false,"url":"https://api.github.com/repos/kripken/emscripten","forks_url":"https://api.github.com/repos/kripken/emscripten/forks","keys_url":"https://api.github.com/repos/kripken/emscripten/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kripken/emscripten/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kripken/emscripten/teams","hooks_url":"https://api.github.com/repos/kripken/emscripten/hooks","issue_events_url":"https://api.github.com/repos/kripken/emscripten/issues/events{/number}","events_url":"https://api.github.com/repos/kripken/emscripten/events","assignees_url":"https://api.github.com/repos/kripken/emscripten/assignees{/user}","branches_url":"https://api.github.com/repos/kripken/emscripten/branches{/branch}","tags_url":"https://api.github.com/repos/kripken/emscripten/tags","blobs_url":"https://api.github.com/repos/kripken/emscripten/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kripken/emscripten/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kripken/emscripten/git/refs{/sha}","trees_url":"https://api.github.com/repos/kripken/emscripten/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kripken/emscripten/statuses/{sha}","languages_url":"https://api.github.com/repos/kripken/emscripten/languages","stargazers_url":"https://api.github.com/repos/kripken/emscripten/stargazers","contributors_url":"https://api.github.com/repos/kripken/emscripten/contributors","subscribers_url":"https://api.github.com/repos/kripken/emscripten/subscribers","subscription_url":"https://api.github.com/repos/kripken/emscripten/subscription","commits_url":"https://api.github.com/repos/kripken/emscripten/commits{/sha}","git_commits_url":"https://api.github.com/repos/kripken/emscripten/git/commits{/sha}","comments_url":"https://api.github.com/repos/kripken/emscripten/comments{/number}","issue_comment_url":"https://api.github.com/repos/kripken/emscripten/issues/comments{/number}","contents_url":"https://api.github.com/repos/kripken/emscripten/contents/{+path}","compare_url":"https://api.github.com/repos/kripken/emscripten/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kripken/emscripten/merges","archive_url":"https://api.github.com/repos/kripken/emscripten/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kripken/emscripten/downloads","issues_url":"https://api.github.com/repos/kripken/emscripten/issues{/number}","pulls_url":"https://api.github.com/repos/kripken/emscripten/pulls{/number}","milestones_url":"https://api.github.com/repos/kripken/emscripten/milestones{/number}","notifications_url":"https://api.github.com/repos/kripken/emscripten/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kripken/emscripten/labels{/name}","releases_url":"https://api.github.com/repos/kripken/emscripten/releases{/id}","created_at":"2011-02-12T05:23:30Z","updated_at":"2015-05-04T15:32:41Z","pushed_at":"2015-05-04T11:25:29Z","git_url":"git://github.com/kripken/emscripten.git","ssh_url":"git@github.com:kripken/emscripten.git","clone_url":"https://github.com/kripken/emscripten.git","svn_url":"https://github.com/kripken/emscripten","homepage":"","size":219953,"stargazers_count":8225,"watchers_count":8225,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":944,"mirror_url":null,"open_issues_count":572,"forks":944,"open_issues":572,"watchers":8225,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kripken/emscripten/pulls/3435"},"html":{"href":"https://github.com/kripken/emscripten/pull/3435"},"issue":{"href":"https://api.github.com/repos/kripken/emscripten/issues/3435"},"comments":{"href":"https://api.github.com/repos/kripken/emscripten/issues/3435/comments"},"review_comments":{"href":"https://api.github.com/repos/kripken/emscripten/pulls/3435/comments"},"review_comment":{"href":"https://api.github.com/repos/kripken/emscripten/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kripken/emscripten/pulls/3435/commits"},"statuses":{"href":"https://api.github.com/repos/kripken/emscripten/statuses/7a41dc0005c62d280c1434b85919328cf17661e5"}}}}