{"action":"created","issue":{"url":"https://api.github.com/repos/libgdx/libgdx/issues/4234","repository_url":"https://api.github.com/repos/libgdx/libgdx","labels_url":"https://api.github.com/repos/libgdx/libgdx/issues/4234/labels{/name}","comments_url":"https://api.github.com/repos/libgdx/libgdx/issues/4234/comments","events_url":"https://api.github.com/repos/libgdx/libgdx/issues/4234/events","html_url":"https://github.com/libgdx/libgdx/pull/4234","id":169820575,"number":4234,"title":"Fixes problems with lossy image data when using premultiplied alpha on GWT for textures","user":{"login":"barkholt","id":16083107,"avatar_url":"https://avatars.githubusercontent.com/u/16083107?v=3","gravatar_id":"","url":"https://api.github.com/users/barkholt","html_url":"https://github.com/barkholt","followers_url":"https://api.github.com/users/barkholt/followers","following_url":"https://api.github.com/users/barkholt/following{/other_user}","gists_url":"https://api.github.com/users/barkholt/gists{/gist_id}","starred_url":"https://api.github.com/users/barkholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barkholt/subscriptions","organizations_url":"https://api.github.com/users/barkholt/orgs","repos_url":"https://api.github.com/users/barkholt/repos","events_url":"https://api.github.com/users/barkholt/events{/privacy}","received_events_url":"https://api.github.com/users/barkholt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-07T22:52:06Z","updated_at":"2016-09-22T11:19:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/libgdx/libgdx/pulls/4234","html_url":"https://github.com/libgdx/libgdx/pull/4234","diff_url":"https://github.com/libgdx/libgdx/pull/4234.diff","patch_url":"https://github.com/libgdx/libgdx/pull/4234.patch"},"body":"Fixes problem reported in #3782 and #3316.\r\n\r\nTexture loading in the GWT backend makes use of the Pixmap class (as in the other backends). The GWT Pixmap is backed by a JavaScript Canvas element in order to make it mutable, as required by the Pixmap class. This is a problem since the round-trip to the Canvas in certain cases is lossy (as documented in the official specs), creating visual artifacts when using the alpha channel (see referenced tickets and supplied test case).\r\n\r\nThe PR proposes to delay the creation of the Canvas until absolutely necessary. In the typical texture loading case, there is no need for this extra representation, and we can just use the already created ImageElement when uploading the texture using OpenGL.\r\n\r\nExternal users of the Pixmap class should be unaffected"},"comment":{"url":"https://api.github.com/repos/libgdx/libgdx/issues/comments/248874802","html_url":"https://github.com/libgdx/libgdx/pull/4234#issuecomment-248874802","issue_url":"https://api.github.com/repos/libgdx/libgdx/issues/4234","id":248874802,"user":{"login":"WillCalderwood","id":6973062,"avatar_url":"https://avatars.githubusercontent.com/u/6973062?v=3","gravatar_id":"","url":"https://api.github.com/users/WillCalderwood","html_url":"https://github.com/WillCalderwood","followers_url":"https://api.github.com/users/WillCalderwood/followers","following_url":"https://api.github.com/users/WillCalderwood/following{/other_user}","gists_url":"https://api.github.com/users/WillCalderwood/gists{/gist_id}","starred_url":"https://api.github.com/users/WillCalderwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WillCalderwood/subscriptions","organizations_url":"https://api.github.com/users/WillCalderwood/orgs","repos_url":"https://api.github.com/users/WillCalderwood/repos","events_url":"https://api.github.com/users/WillCalderwood/events{/privacy}","received_events_url":"https://api.github.com/users/WillCalderwood/received_events","type":"User","site_admin":false},"created_at":"2016-09-22T11:19:08Z","updated_at":"2016-09-22T11:19:08Z","body":"@barkholt Any response to @Tom-Ski ? I'd love to see this fixed as I've just hit problems again.\r\n\r\n@Tom-Ski Why do you not like the lazy loading of the canvas? You don't like the existance checks?\r\n\r\nThanks"}}
{"actor":{"display_login":"WillCalderwood"}}