{"action":"closed","issue":{"url":"https://api.github.com/repos/pex-gl/pex-context/issues/7","repository_url":"https://api.github.com/repos/pex-gl/pex-context","labels_url":"https://api.github.com/repos/pex-gl/pex-context/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/pex-gl/pex-context/issues/7/comments","events_url":"https://api.github.com/repos/pex-gl/pex-context/issues/7/events","html_url":"https://github.com/pex-gl/pex-context/issues/7","id":148324274,"number":7,"title":"drawElements: attempt to access out of bounds arrays","user":{"login":"vorg","id":171001,"avatar_url":"https://avatars.githubusercontent.com/u/171001?v=3","gravatar_id":"","url":"https://api.github.com/users/vorg","html_url":"https://github.com/vorg","followers_url":"https://api.github.com/users/vorg/followers","following_url":"https://api.github.com/users/vorg/following{/other_user}","gists_url":"https://api.github.com/users/vorg/gists{/gist_id}","starred_url":"https://api.github.com/users/vorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vorg/subscriptions","organizations_url":"https://api.github.com/users/vorg/orgs","repos_url":"https://api.github.com/users/vorg/repos","events_url":"https://api.github.com/users/vorg/events{/privacy}","received_events_url":"https://api.github.com/users/vorg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-14T10:59:14Z","updated_at":"2016-04-14T11:12:18Z","closed_at":"2016-04-14T11:12:18Z","body":"I had problems rendering meshes where i used shaders with and without aTexCoord0 due to VertexArray locations being left enabled.\r\n\r\nWe don't unbind the unused vertex array locations so i experimented with VertexArray._unbindInternal but ideally we would disable only the locations not used by the next VertexArray.\r\n\r\nThis wouldn't happen if we had draw commands with both shaders and vertex arrays present at the same place so we can compare what's used and what's provided. We could also optimize these cases on the fly by using VAOs is the VA/Program pair is used multiple times."}}