@@ -232,7 +232,7 @@ void NVGImage::loadJUCEImage(NVGcontext* context, Image const& image, int const
232232 flags |= withMipmaps ? NVG_IMAGE_GENERATE_MIPMAPS : 0 ;
233233
234234 if (image.isARGB ())
235- subImage.imageId = nvgCreateImageARGB (nvg, totalWidth, totalHeight, flags, imageData.data );
235+ subImage.imageId = nvgCreateImageARGB_sRGB (nvg, totalWidth, totalHeight, flags, imageData.data );
236236 else if (image.isSingleChannel ())
237237 subImage.imageId = nvgCreateImageAlpha (nvg, totalWidth, totalHeight, flags, imageData.data );
238238
@@ -264,7 +264,7 @@ void NVGImage::loadJUCEImage(NVGcontext* context, Image const& image, int const
264264 flags |= withMipmaps ? NVG_IMAGE_GENERATE_MIPMAPS : 0 ;
265265
266266 if (image.isARGB ())
267- subImage.imageId = nvgCreateImageARGB (nvg, w, h, flags, imageData.data );
267+ subImage.imageId = nvgCreateImageARGB_sRGB (nvg, w, h, flags, imageData.data );
268268 else if (image.isSingleChannel ())
269269 subImage.imageId = nvgCreateImageAlpha (nvg, w, h, flags, imageData.data );
270270
0 commit comments