{"action":"created","issue":{"url":"https://api.github.com/repos/bkaradzic/bgfx/issues/1436","repository_url":"https://api.github.com/repos/bkaradzic/bgfx","labels_url":"https://api.github.com/repos/bkaradzic/bgfx/issues/1436/labels{/name}","comments_url":"https://api.github.com/repos/bkaradzic/bgfx/issues/1436/comments","events_url":"https://api.github.com/repos/bkaradzic/bgfx/issues/1436/events","html_url":"https://github.com/bkaradzic/bgfx/issues/1436","id":340805183,"node_id":"MDU6SXNzdWUzNDA4MDUxODM=","number":1436,"title":"bgfx_create_texture_2d glitch?","user":{"login":"NuklearBomb","id":33639078,"node_id":"MDQ6VXNlcjMzNjM5MDc4","avatar_url":"https://avatars1.githubusercontent.com/u/33639078?v=4","gravatar_id":"","url":"https://api.github.com/users/NuklearBomb","html_url":"https://github.com/NuklearBomb","followers_url":"https://api.github.com/users/NuklearBomb/followers","following_url":"https://api.github.com/users/NuklearBomb/following{/other_user}","gists_url":"https://api.github.com/users/NuklearBomb/gists{/gist_id}","starred_url":"https://api.github.com/users/NuklearBomb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NuklearBomb/subscriptions","organizations_url":"https://api.github.com/users/NuklearBomb/orgs","repos_url":"https://api.github.com/users/NuklearBomb/repos","events_url":"https://api.github.com/users/NuklearBomb/events{/privacy}","received_events_url":"https://api.github.com/users/NuklearBomb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-07-12T21:29:37Z","updated_at":"2018-07-13T02:46:52Z","closed_at":"2018-07-13T02:31:41Z","author_association":"CONTRIBUTOR","body":"Texture data looks like (stored in `uint8_t` format):\r\n```\r\n010100FF 010100FF etc\r\n```\r\n\r\nFunction call:\r\n```\r\nbgfx_create_texture_2d(w,h,0,0,BGFX_TEXTURE_FORMAT_RGBA8U,0,bgfx_make_ref(imdata,w*h*4));\r\n```\r\n\r\nResult:\r\nThe cube is yellow. Taking a screenshot and using a color dropper, it is the color FFFF00, not 010100. Further testing with the color 800000FF yields the color FF0000, not 010000. Basically, if a channel is greater than 0 in hex, it is automatically FF (1.0).\r\n\r\nThis is a very strange glitch. Why could it be happening?"},"comment":{"url":"https://api.github.com/repos/bkaradzic/bgfx/issues/comments/404709389","html_url":"https://github.com/bkaradzic/bgfx/issues/1436#issuecomment-404709389","issue_url":"https://api.github.com/repos/bkaradzic/bgfx/issues/1436","id":404709389,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDcwOTM4OQ==","user":{"login":"NuklearBomb","id":33639078,"node_id":"MDQ6VXNlcjMzNjM5MDc4","avatar_url":"https://avatars1.githubusercontent.com/u/33639078?v=4","gravatar_id":"","url":"https://api.github.com/users/NuklearBomb","html_url":"https://github.com/NuklearBomb","followers_url":"https://api.github.com/users/NuklearBomb/followers","following_url":"https://api.github.com/users/NuklearBomb/following{/other_user}","gists_url":"https://api.github.com/users/NuklearBomb/gists{/gist_id}","starred_url":"https://api.github.com/users/NuklearBomb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NuklearBomb/subscriptions","organizations_url":"https://api.github.com/users/NuklearBomb/orgs","repos_url":"https://api.github.com/users/NuklearBomb/repos","events_url":"https://api.github.com/users/NuklearBomb/events{/privacy}","received_events_url":"https://api.github.com/users/NuklearBomb/received_events","type":"User","site_admin":false},"created_at":"2018-07-13T02:46:52Z","updated_at":"2018-07-13T02:46:52Z","author_association":"CONTRIBUTOR","body":"This chart is how I derived the `RGBA8U`. The `[ ]Unorm` confused me because it was blank, but it really shouldn't have, since it means unsigned values will be normalized. Hindsight is 20/20, as they say. ;) Thanks again for this very intuitive and flexible API!"}}
{"actor":{"display_login":"NuklearBomb"}}