mirror of
https://github.com/love2d/love.git
synced 2026-08-12 00:20:52 +02:00
Fix readbackTexture when using a preexisting sRGB ImageData.
This commit is contained in:
@@ -100,7 +100,7 @@ GraphicsReadback::GraphicsReadback(Graphics *gfx, ReadbackMethod method, Texture
|
||||
|
||||
if (dest != nullptr)
|
||||
{
|
||||
if (dest->getFormat() != textureFormat)
|
||||
if (getLinearPixelFormat(dest->getFormat()) != textureFormat)
|
||||
throw love::Exception("Destination ImageData pixel format must match the source Texture's format.");
|
||||
|
||||
if (destx < 0 || desty < 0)
|
||||
|
||||
Reference in New Issue
Block a user