{"action":"created","issue":{"url":"https://api.github.com/repos/apitrace/apitrace/issues/316","labels_url":"https://api.github.com/repos/apitrace/apitrace/issues/316/labels{/name}","comments_url":"https://api.github.com/repos/apitrace/apitrace/issues/316/comments","events_url":"https://api.github.com/repos/apitrace/apitrace/issues/316/events","html_url":"https://github.com/apitrace/apitrace/issues/316","id":55425835,"number":316,"title":"NS2 Linux: glProgramBinary causing odd behaviors","user":{"login":"computerquip","id":624819,"avatar_url":"https://avatars.githubusercontent.com/u/624819?v=3","gravatar_id":"","url":"https://api.github.com/users/computerquip","html_url":"https://github.com/computerquip","followers_url":"https://api.github.com/users/computerquip/followers","following_url":"https://api.github.com/users/computerquip/following{/other_user}","gists_url":"https://api.github.com/users/computerquip/gists{/gist_id}","starred_url":"https://api.github.com/users/computerquip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/computerquip/subscriptions","organizations_url":"https://api.github.com/users/computerquip/orgs","repos_url":"https://api.github.com/users/computerquip/repos","events_url":"https://api.github.com/users/computerquip/events{/privacy}","received_events_url":"https://api.github.com/users/computerquip/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/apitrace/apitrace/labels/Replaying","name":"Replaying","color":"02d7e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-25T19:18:02Z","updated_at":"2015-01-26T00:31:54Z","closed_at":null,"body":"Natural Selection 2 uses glProgramBinary and does not explicitly call glLinkProgram. Despite the LINK_STATUS returning true and this seemingly working when running the game, apitrace does not seem to play with this well, and replaying displays a white screen of nothingness. If any feedback can be provided, I've provided the apitrace that fails from the public build of NS2 that does not work for me (which anyone can provide themselves). \r\n\r\nhttp://www.mediafire.com/download/i26f1403f6j0f2e/ns2_linux32.trace"},"comment":{"url":"https://api.github.com/repos/apitrace/apitrace/issues/comments/71402255","html_url":"https://github.com/apitrace/apitrace/issues/316#issuecomment-71402255","issue_url":"https://api.github.com/repos/apitrace/apitrace/issues/316","id":71402255,"user":{"login":"jrfonseca","id":140183,"avatar_url":"https://avatars.githubusercontent.com/u/140183?v=3","gravatar_id":"","url":"https://api.github.com/users/jrfonseca","html_url":"https://github.com/jrfonseca","followers_url":"https://api.github.com/users/jrfonseca/followers","following_url":"https://api.github.com/users/jrfonseca/following{/other_user}","gists_url":"https://api.github.com/users/jrfonseca/gists{/gist_id}","starred_url":"https://api.github.com/users/jrfonseca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrfonseca/subscriptions","organizations_url":"https://api.github.com/users/jrfonseca/orgs","repos_url":"https://api.github.com/users/jrfonseca/repos","events_url":"https://api.github.com/users/jrfonseca/events{/privacy}","received_events_url":"https://api.github.com/users/jrfonseca/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T00:31:54Z","updated_at":"2015-01-26T00:31:54Z","body":"> That patch appears to cause a segfault. Also, it won't apply to master out of the box...\r\n\r\nThis patch was taken from master. It applies fine here:\r\n\r\n    $ git checkout master\r\n    Already on 'master'\r\n    $ git pull\r\n    Current branch master is up to date.\r\n    $ cat patch\r\n    diff --git a/wrappers/glcaps.cpp b/wrappers/glcaps.cpp\r\n    index 2fc246c..078c7b9 100644\r\n    --- a/wrappers/glcaps.cpp\r\n    +++ b/wrappers/glcaps.cpp\r\n    @@ -238,7 +238,12 @@ _glGetStringi_override(GLenum name, GLuint index)\r\n             }\r\n         }\r\n    \r\n    -    return _glGetStringi(name, index);\r\n    +    const GLubyte *result;\r\n    +    result = _glGetStringi(name, index);\r\n    +    if (strcmp((const char *)result, \"GL_ARB_get_program_binary\") == 0) {\r\n    +        result = (const GLubyte *)\"GL_FOO_foo\";\r\n    +    }\r\n    +    return result;\r\n     }\r\n    $ patch -p1 -i patch\r\n    patching file wrappers/glcaps.cpp\r\n\r\n> apitrace now tells me that the program binary is not compatible with my driver.... which doesn't make sense either as I only have one possible driver.\r\n\r\nI can think of a few explanations:\r\n1) the program binary blob wasn't recorded properly somehow;\r\n2) some other external factor (e.g., visual) changed, causing the binary blob to become useless."}}