Skip to content

Commit

Permalink
Fix readbackTexture when using a preexisting sRGB ImageData.
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Aug 21, 2024
1 parent ccdd789 commit 746aefe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/graphics/GraphicsReadback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 746aefe

Please sign in to comment.