{"action":"created","issue":{"url":"https://api.github.com/repos/PixarAnimationStudios/OpenSubdiv/issues/462","labels_url":"https://api.github.com/repos/PixarAnimationStudios/OpenSubdiv/issues/462/labels{/name}","comments_url":"https://api.github.com/repos/PixarAnimationStudios/OpenSubdiv/issues/462/comments","events_url":"https://api.github.com/repos/PixarAnimationStudios/OpenSubdiv/issues/462/events","html_url":"https://github.com/PixarAnimationStudios/OpenSubdiv/pull/462","id":72744472,"number":462,"title":"Dev","user":{"login":"ielillo","id":11845353,"avatar_url":"https://avatars.githubusercontent.com/u/11845353?v=3","gravatar_id":"","url":"https://api.github.com/users/ielillo","html_url":"https://github.com/ielillo","followers_url":"https://api.github.com/users/ielillo/followers","following_url":"https://api.github.com/users/ielillo/following{/other_user}","gists_url":"https://api.github.com/users/ielillo/gists{/gist_id}","starred_url":"https://api.github.com/users/ielillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ielillo/subscriptions","organizations_url":"https://api.github.com/users/ielillo/orgs","repos_url":"https://api.github.com/users/ielillo/repos","events_url":"https://api.github.com/users/ielillo/events{/privacy}","received_events_url":"https://api.github.com/users/ielillo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-05-03T04:15:11Z","updated_at":"2015-05-22T06:31:37Z","closed_at":"2015-05-22T06:31:37Z","pull_request":{"url":"https://api.github.com/repos/PixarAnimationStudios/OpenSubdiv/pulls/462","html_url":"https://github.com/PixarAnimationStudios/OpenSubdiv/pull/462","diff_url":"https://github.com/PixarAnimationStudios/OpenSubdiv/pull/462.diff","patch_url":"https://github.com/PixarAnimationStudios/OpenSubdiv/pull/462.patch"},"body":"I've been working on making the glViewer work on older machines. From the initial executions the program failed because the wrong opengl version hinting was being set in the function setGLCoreProfile. In order to fix that I decided to try different opengl versions and fail if none of the works. The version are 4.4, 4.2 and 3.2.\r\n\r\nAnother issue was the shader linking errors. The cause was that the wrong opengl version  was being set in the shader file. As a solution, I created a function to query for the current opengl version and use it to set the right shader version before compiling it.\r\n\r\nFinally some parts of the code used the GLEW headers definitions to check if certain opengl capabilities were present, the issue with that is sometimes a driver says that certain capability is present but it does not says that it is really implemented. So if GLEW was present I used it to dynamically query the opengl capabilities falling back to headers definitions otherwise. \r\n\r\nRegarding the platforms  this code has been developed primarily on Windows and Linux so it should work on both. However it has not been compiled nor tested on the Mac platform, so I cannot guarantee that it will compile there or work.\r\nI'm open to any suggestion or criticism."},"comment":{"url":"https://api.github.com/repos/PixarAnimationStudios/OpenSubdiv/issues/comments/104537122","html_url":"https://github.com/PixarAnimationStudios/OpenSubdiv/pull/462#issuecomment-104537122","issue_url":"https://api.github.com/repos/PixarAnimationStudios/OpenSubdiv/issues/462","id":104537122,"user":{"login":"jcowles","id":1510114,"avatar_url":"https://avatars.githubusercontent.com/u/1510114?v=3","gravatar_id":"","url":"https://api.github.com/users/jcowles","html_url":"https://github.com/jcowles","followers_url":"https://api.github.com/users/jcowles/followers","following_url":"https://api.github.com/users/jcowles/following{/other_user}","gists_url":"https://api.github.com/users/jcowles/gists{/gist_id}","starred_url":"https://api.github.com/users/jcowles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcowles/subscriptions","organizations_url":"https://api.github.com/users/jcowles/orgs","repos_url":"https://api.github.com/users/jcowles/repos","events_url":"https://api.github.com/users/jcowles/events{/privacy}","received_events_url":"https://api.github.com/users/jcowles/received_events","type":"User","site_admin":false},"created_at":"2015-05-22T06:31:37Z","updated_at":"2015-05-22T06:31:37Z","body":"The new pull request fully replaces this one, correct?\r\n\r\nClosing, but feel free to reopen if there is still something to merge here."}}