payload: {"action":"created","issue":{"url":"https://api.github.com/repos/memononen/nanovg/issues/534","repository_url":"https://api.github.com/repos/memononen/nanovg","labels_url":"https://api.github.com/repos/memononen/nanovg/issues/534/labels{/name}","comments_url":"https://api.github.com/repos/memononen/nanovg/issues/534/comments","events_url":"https://api.github.com/repos/memononen/nanovg/issues/534/events","html_url":"https://github.com/memononen/nanovg/issues/534","id":419223437,"node_id":"MDU6SXNzdWU0MTkyMjM0Mzc=","number":534,"title":"Trying to use nvgLoadImageRGBA","user":{"login":"SNSTRUTHERS","id":31030033,"node_id":"MDQ6VXNlcjMxMDMwMDMz","avatar_url":"https://avatars3.githubusercontent.com/u/31030033?v=4","gravatar_id":"","url":"https://api.github.com/users/SNSTRUTHERS","html_url":"https://github.com/SNSTRUTHERS","followers_url":"https://api.github.com/users/SNSTRUTHERS/followers","following_url":"https://api.github.com/users/SNSTRUTHERS/following{/other_user}","gists_url":"https://api.github.com/users/SNSTRUTHERS/gists{/gist_id}","starred_url":"https://api.github.com/users/SNSTRUTHERS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SNSTRUTHERS/subscriptions","organizations_url":"https://api.github.com/users/SNSTRUTHERS/orgs","repos_url":"https://api.github.com/users/SNSTRUTHERS/repos","events_url":"https://api.github.com/users/SNSTRUTHERS/events{/privacy}","received_events_url":"https://api.github.com/users/SNSTRUTHERS/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2019-03-10T19:39:44Z","updated_at":"2019-03-11T21:26:04Z","closed_at":null,"author_association":"NONE","body":"In my code, I'm trying to import images into NanoVG through the use of SDL_Surfaces:\r\n\r\n`SDL_Surface *s = {...};`\r\n`img_id = nvgCreateImageRGBA(nvg_ctx, s->w, s->h, 0, (unsigned char*)(s->pixels));`\r\n...\r\n`int w, h;`\r\n`nvgImageSize(nvg_ctx, img_id, &w, &h);`\r\n`nvgImagePattern(nvg_ctx, x + (w/2.f), y + (h/2.f), w, h, 0.f, img_id, 1.f);`\r\n\r\nYet it doesn't seem to be rendering anything to the screen."},"comment":{"url":"https://api.github.com/repos/memononen/nanovg/issues/comments/471736389","html_url":"https://github.com/memononen/nanovg/issues/534#issuecomment-471736389","issue_url":"https://api.github.com/repos/memononen/nanovg/issues/534","id":471736389,"node_id":"MDEyOklzc3VlQ29tbWVudDQ3MTczNjM4OQ==","user":{"login":"memononen","id":5249992,"node_id":"MDQ6VXNlcjUyNDk5OTI=","avatar_url":"https://avatars0.githubusercontent.com/u/5249992?v=4","gravatar_id":"","url":"https://api.github.com/users/memononen","html_url":"https://github.com/memononen","followers_url":"https://api.github.com/users/memononen/followers","following_url":"https://api.github.com/users/memononen/following{/other_user}","gists_url":"https://api.github.com/users/memononen/gists{/gist_id}","starred_url":"https://api.github.com/users/memononen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/memononen/subscriptions","organizations_url":"https://api.github.com/users/memononen/orgs","repos_url":"https://api.github.com/users/memononen/repos","events_url":"https://api.github.com/users/memononen/events{/privacy}","received_events_url":"https://api.github.com/users/memononen/received_events","type":"User","site_admin":false},"created_at":"2019-03-11T21:26:04Z","updated_at":"2019-03-11T21:26:04Z","author_association":"OWNER","body":"Did not spot that delete image there in the first time. The stuff is sent to opengl at `nvgEndFrame`, since you delete the texture immediately, you will get black texture.  "}}
other: {"actor":{"display_login":"memononen"}}