fix an issue where offset was not used

This commit is contained in:
Luke Usher 2020-05-08 09:28:20 +01:00
parent b0bcc2fd9b
commit e499d3ad07
1 changed files with 2 additions and 3 deletions

View File

@ -3817,11 +3817,10 @@ void GetViewPortOffsetAndScale(float (&vOffset)[4], float(&vScale)[4])
// TODO will we need to do something here to support upscaling? // TODO will we need to do something here to support upscaling?
// TODO remove the code above as required // TODO remove the code above as required
// Default scale and offset. // Reset to default scale (as we accounted for MSAA scale above)
// But don't reset the offset
xScale = 1.0f; xScale = 1.0f;
yScale = 1.0f; yScale = 1.0f;
xOffset = 0.5f;
yOffset = 0.5f;
// Xbox correct values? // Xbox correct values?
xOffset = xOffset + (1.0f / 32.0f); xOffset = xOffset + (1.0f / 32.0f);