{"action":"opened","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/2533","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-js","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/2533/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/2533/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/2533/events","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/2533","id":153325120,"number":2533,"title":"Unable to add a fill-pattern to a layer","user":{"login":"scothis","id":302992,"avatar_url":"https://avatars.githubusercontent.com/u/302992?v=3","gravatar_id":"","url":"https://api.github.com/users/scothis","html_url":"https://github.com/scothis","followers_url":"https://api.github.com/users/scothis/followers","following_url":"https://api.github.com/users/scothis/following{/other_user}","gists_url":"https://api.github.com/users/scothis/gists{/gist_id}","starred_url":"https://api.github.com/users/scothis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scothis/subscriptions","organizations_url":"https://api.github.com/users/scothis/orgs","repos_url":"https://api.github.com/users/scothis/repos","events_url":"https://api.github.com/users/scothis/events{/privacy}","received_events_url":"https://api.github.com/users/scothis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-05T21:00:40Z","updated_at":"2016-05-05T21:00:40Z","closed_at":null,"body":"<!--\r\nHello! Thanks for contributing. To help us diagnose your problem quickly, please:\r\n\r\n - Include a link to a minimal demonstration of the bug. We recommend using https://jsbin.com\r\n - Ensure you can reproduce the bug using the latest release.\r\n - Check the console for relevant errors and warnings\r\n - Only post to report a bug or request a feature. Direct all other questions to https://stackoverflow.com/questions/tagged/mapbox-gl-js\r\n-->\r\n\r\n**mapbox-gl-js version**: 0.18.0\r\n\r\n### Steps to Trigger Behavior\r\n\r\nTested in Chrome 50.\r\n\r\n 1. create a layer with a fill-color and no fill-pattern\r\n 2. use `map.setPaintProperty()` to set a fill-pattern\r\n\r\n### Expected Behavior\r\n\r\nThe layer should render with the pattern and continue to be responsive to user input and style mutations.\r\n\r\n### Actual Behavior\r\n\r\nThe pattern is set for the layer. An error is logged to the console and the map is no longer interactive.\r\n\r\n    Uncaught AssertionError: trying to bind a VAO to a different shader\r\n\r\n<img width=\"512\" alt=\"screen shot 2016-05-05 at 4 56 28 pm\" src=\"https://cloud.githubusercontent.com/assets/302992/15056973/88bf6a5c-12e2-11e6-8238-5abdaa08b457.png\">\r\n\r\ncc @lucaswoj "}}