Commit 8aaf6712 by Nicolas Capens

Fix setting the source format before using it.

Change-Id: I47b82f0e10e572943c31df521b1b74492ba6318e Reviewed-on: https://swiftshader-review.googlesource.com/3081Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarNicolas Capens <capn@google.com>
parent d2b487ef
......@@ -158,6 +158,8 @@ namespace sw
return;
}
sourceFormat = format;
if(topLeftOrigin)
{
target = source;
......@@ -171,8 +173,6 @@ namespace sw
target = (byte*)source + (height - 1) * sStride;
}
sourceFormat = format;
cursorX = cursorPositionX - cursorHotspotX;
cursorY = cursorPositionY - cursorHotspotY;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment