{"action":"opened","issue":{"url":"https://api.github.com/repos/PistonDevelopers/conrod/issues/887","repository_url":"https://api.github.com/repos/PistonDevelopers/conrod","labels_url":"https://api.github.com/repos/PistonDevelopers/conrod/issues/887/labels{/name}","comments_url":"https://api.github.com/repos/PistonDevelopers/conrod/issues/887/comments","events_url":"https://api.github.com/repos/PistonDevelopers/conrod/issues/887/events","html_url":"https://github.com/PistonDevelopers/conrod/issues/887","id":192847417,"number":887,"title":"Can't show multiple textures on glutin/glium backend","user":{"login":"TimBednarzyk","id":8797125,"avatar_url":"https://avatars.githubusercontent.com/u/8797125?v=3","gravatar_id":"","url":"https://api.github.com/users/TimBednarzyk","html_url":"https://github.com/TimBednarzyk","followers_url":"https://api.github.com/users/TimBednarzyk/followers","following_url":"https://api.github.com/users/TimBednarzyk/following{/other_user}","gists_url":"https://api.github.com/users/TimBednarzyk/gists{/gist_id}","starred_url":"https://api.github.com/users/TimBednarzyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimBednarzyk/subscriptions","organizations_url":"https://api.github.com/users/TimBednarzyk/orgs","repos_url":"https://api.github.com/users/TimBednarzyk/repos","events_url":"https://api.github.com/users/TimBednarzyk/events{/privacy}","received_events_url":"https://api.github.com/users/TimBednarzyk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-01T13:31:25Z","updated_at":"2016-12-01T13:31:25Z","closed_at":null,"body":"On the glutin/glium backend, for some reason all `widget::Image`s show the texture of whichever one was drawn first.\r\n\r\nGiven the Ids struct containing canvas, image1, image2,\r\n```\r\n  let image_map = image_map!\r\n  {\r\n    (ids.image1, tex1),\r\n    (ids.image2, tex2),\r\n  };\r\n```\r\n```\r\n      widget::Canvas::new()\r\n        .set(ids.canvas, ui);\r\n\r\n      widget::Image::new()\r\n        .w_h(200.0, 200.0)\r\n        .align_left_of(ids.canvas)\r\n        .align_top_of(ids.canvas)\r\n        .set(ids.image1, ui);\r\n\r\n      widget::Image::new()\r\n        .w_h(200.0, 200.0)\r\n        .align_right_of(ids.canvas)\r\n        .align_bottom_of(ids.canvas)\r\n        .set(ids.image2, ui);\r\n```\r\n\r\nBoth image1 and image2 will show the texture for image1. Putting image2 before image1 results in both of them showing the texture for image2."}}
{"actor":{"display_login":"TimBednarzyk"}}