mirror of https://github.com/adamdruppe/arsd.git
non-image branch fix
This commit is contained in:
parent
8d1655cd0a
commit
6127e2bfac
|
@ -2701,7 +2701,7 @@ public int createImage (NVGContext ctx, const(char)[] filename, int imageFlags=N
|
||||||
//printf("Failed to load %s - %s\n", filename, stbi_failure_reason());
|
//printf("Failed to load %s - %s\n", filename, stbi_failure_reason());
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
image = ctx.createImageRGBA(w, h, imageFlags, img[0..w*h*4]);
|
image = ctx.createImageRGBA(w, h, img[0..w*h*4], imageFlags);
|
||||||
stbi_image_free(img);
|
stbi_image_free(img);
|
||||||
return image;
|
return image;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue