Browse Source

Fix readbackTexture when using a preexisting sRGB ImageData.

Sasha Szpakowski 1 year ago
parent
commit
746aefef15
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/graphics/GraphicsReadback.cpp

+ 1 - 1
src/modules/graphics/GraphicsReadback.cpp

@@ -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)