Merge branch 'memononen:master' into development

This commit is contained in:
Blake Lucas 2026-03-22 22:32:28 -07:00 • committed by GitHub
commit 6a8a2e7645
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -852,6 +852,8 @@ int nvgCreateImage(NVGcontext* ctx, const char* filename, int imageFlags)
int nvgCreateImageMem(NVGcontext* ctx, int imageFlags, unsigned char* data, int ndata)
{
int w, h, n, image;
stbi_set_unpremultiply_on_load(1);
stbi_convert_iphone_png_to_rgb(1);
unsigned char* img = stbi_load_from_memory(data, ndata, &w, &h, &n, 4);
if (img == NULL) {
// printf("Failed to load %s - %s\n", filename, stbi_failure_reason());