{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/961","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/961/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/961/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/961/events","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/961","id":60182449,"number":961,"title":"SpriteAtlas.width is less than Sprite.Width (Feature or Bug)","user":{"login":"mb12","id":8890269,"avatar_url":"https://avatars.githubusercontent.com/u/8890269?v=3","gravatar_id":"","url":"https://api.github.com/users/mb12","html_url":"https://github.com/mb12","followers_url":"https://api.github.com/users/mb12/followers","following_url":"https://api.github.com/users/mb12/following{/other_user}","gists_url":"https://api.github.com/users/mb12/gists{/gist_id}","starred_url":"https://api.github.com/users/mb12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mb12/subscriptions","organizations_url":"https://api.github.com/users/mb12/orgs","repos_url":"https://api.github.com/users/mb12/repos","events_url":"https://api.github.com/users/mb12/events{/privacy}","received_events_url":"https://api.github.com/users/mb12/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-07T01:18:05Z","updated_at":"2015-03-07T11:58:13Z","closed_at":null,"body":"Can someone please comment on whether the following is correct?\r\n\r\n1.) SpriteAtlas width is hardcoded to 512\r\n2.) Sprite width for @2x is 752.\r\n\r\nI am wondering why this works correctly. Whenever an icon sprite is needed during Symbol Bucket creation, raw pixels are copied from sprite.raster to spriteatlas.data, a dirty flag is set that triggers copy to GPU in map thread.  This works correctly even though SpriteAtlas and Sprite.raster have different widths.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/comments/77686359","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/961#issuecomment-77686359","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/961","id":77686359,"user":{"login":"kkaefer","id":52399,"avatar_url":"https://avatars.githubusercontent.com/u/52399?v=3","gravatar_id":"","url":"https://api.github.com/users/kkaefer","html_url":"https://github.com/kkaefer","followers_url":"https://api.github.com/users/kkaefer/followers","following_url":"https://api.github.com/users/kkaefer/following{/other_user}","gists_url":"https://api.github.com/users/kkaefer/gists{/gist_id}","starred_url":"https://api.github.com/users/kkaefer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkaefer/subscriptions","organizations_url":"https://api.github.com/users/kkaefer/orgs","repos_url":"https://api.github.com/users/kkaefer/repos","events_url":"https://api.github.com/users/kkaefer/events{/privacy}","received_events_url":"https://api.github.com/users/kkaefer/received_events","type":"User","site_admin":false},"created_at":"2015-03-07T11:58:13Z","updated_at":"2015-03-07T11:58:13Z","body":"We are not using the sprite image as in and upload it to the texture. Instead, we use a sprite atlas that only contains the sprite images that are used in the current map view. The coordinates we are using in the GPU buffer are the coordinates in the sprite atlas image, not those from the source image."}}