Skip to content

Commit

Permalink
GPU: Oops, don't skip copy if stride different.
Browse files Browse the repository at this point in the history
Should've tested that change better, but wanted the mip level fix...
  • Loading branch information
unknownbrackets committed May 15, 2020
1 parent 864d138 commit 192198e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion GPU/Common/FramebufferCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -736,8 +736,10 @@ Draw::Texture *FramebufferManagerCommon::MakePixelTexture(const u8 *srcPixels, G
if (preferredPixelsFormat_ == Draw::DataFormat::B8G8R8A8_UNORM)
ConvertRGBA8888ToBGRA8888(dst, src32, width);
// This means use original pointer as-is. May avoid or optimize a copy.
else
else if (srcStride == width)
return false;
else
memcpy(dst, src32, width * 4);
break;

case GE_FORMAT_INVALID:
Expand Down

0 comments on commit 192198e

Please sign in to comment.