{"action":"created","issue":{"url":"https://api.github.com/repos/openfl/starling/issues/26","repository_url":"https://api.github.com/repos/openfl/starling","labels_url":"https://api.github.com/repos/openfl/starling/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/openfl/starling/issues/26/comments","events_url":"https://api.github.com/repos/openfl/starling/issues/26/events","html_url":"https://github.com/openfl/starling/issues/26","id":189226600,"number":26,"title":"Images are not shown on html5 targets when texture size is not squared","user":{"login":"zack-z","id":1548892,"avatar_url":"https://avatars.githubusercontent.com/u/1548892?v=3","gravatar_id":"","url":"https://api.github.com/users/zack-z","html_url":"https://github.com/zack-z","followers_url":"https://api.github.com/users/zack-z/followers","following_url":"https://api.github.com/users/zack-z/following{/other_user}","gists_url":"https://api.github.com/users/zack-z/gists{/gist_id}","starred_url":"https://api.github.com/users/zack-z/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zack-z/subscriptions","organizations_url":"https://api.github.com/users/zack-z/orgs","repos_url":"https://api.github.com/users/zack-z/repos","events_url":"https://api.github.com/users/zack-z/events{/privacy}","received_events_url":"https://api.github.com/users/zack-z/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-14T21:08:07Z","updated_at":"2016-11-14T21:45:25Z","closed_at":null,"body":"Test code:\r\n\r\nvar bmpData:BitmapData = Assets.getBitmapData(\"assets/image.png\");\r\nvar bmp:Bitmap = new Bitmap(bmpData);\r\nvar img:Image = Image.fromBitmap(bmp);\r\naddChild(img);\r\n\r\nIf image.png has width == 129 px and height == 128 px, then under html5 there will be error and image will not be rendered. Works fine under flash target.\r\n\r\nIf image.png has width = 129 px and height == 129 px, then works ok under html5 and flash.\r\n\r\nAfter debugging it seems the error is related to generating mipmaps, is there a way to fix this issue still using mipmaps?"},"comment":{"url":"https://api.github.com/repos/openfl/starling/issues/comments/260472738","html_url":"https://github.com/openfl/starling/issues/26#issuecomment-260472738","issue_url":"https://api.github.com/repos/openfl/starling/issues/26","id":260472738,"user":{"login":"peteshand","id":139457,"avatar_url":"https://avatars.githubusercontent.com/u/139457?v=3","gravatar_id":"","url":"https://api.github.com/users/peteshand","html_url":"https://github.com/peteshand","followers_url":"https://api.github.com/users/peteshand/followers","following_url":"https://api.github.com/users/peteshand/following{/other_user}","gists_url":"https://api.github.com/users/peteshand/gists{/gist_id}","starred_url":"https://api.github.com/users/peteshand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peteshand/subscriptions","organizations_url":"https://api.github.com/users/peteshand/orgs","repos_url":"https://api.github.com/users/peteshand/repos","events_url":"https://api.github.com/users/peteshand/events{/privacy}","received_events_url":"https://api.github.com/users/peteshand/received_events","type":"User","site_admin":false},"created_at":"2016-11-14T21:45:25Z","updated_at":"2016-11-14T21:45:25Z","body":"Hey there\r\n\r\nYes the issue is indeed related to MipMaps.\r\nFor the time being you'll need to do something like:\r\n\r\nvar bmpData:BitmapData = Assets.getBitmapData(\"assets/image.png\");\r\nvar bmp:Bitmap = new Bitmap(bmpData);\r\n#if flash\r\nvar img:Image = Image.fromBitmap(bmp);generateMipMaps = false\r\n#else\r\nvar img:Image = Image.fromBitmap(bmp, false);\r\n#end\r\naddChild(img);"}}
{"actor":{"display_login":"peteshand"}}