mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Fix love.graphics.newTexture(imagedata, {canvas=true}) not using an sRGB format when it should
This commit is contained in:
@@ -194,6 +194,8 @@ Texture::Texture(const Settings &settings, const Slices *slices)
|
||||
love::image::ImageDataBase *slice = slices->get(0, 0);
|
||||
|
||||
format = slice->getFormat();
|
||||
if (sRGB)
|
||||
format = getSRGBPixelFormat(format);
|
||||
|
||||
pixelWidth = slice->getWidth();
|
||||
pixelHeight = slice->getHeight();
|
||||
|
||||
Reference in New Issue
Block a user