GPU:
- Fix HOFS bug when reading back the 3D framebuffer. Tested in Nanostray 2 by explosions that cause the screen to shake. (Regression from r5210.)
This commit is contained in:
parent
d28e49dd2b
commit
3b332f3a12
|
@ -2231,7 +2231,7 @@ PLAIN_CLEAR:
|
|||
{
|
||||
gpu->currBgNum = 0;
|
||||
|
||||
const u16 hofs = (u16)_gpuDstPitchIndex[gpu->getHOFS(layerNum)];
|
||||
const u16 hofs = (u16)( ((float)gpu->getHOFS(layerNum) * _gpuWidthScale) + 0.5f );
|
||||
u16 *oldDstLine = dstLine;
|
||||
|
||||
for (size_t lineIndex = 0; lineIndex < _gpuDstLineCount[l]; lineIndex++, dstLine += _gpuFramebufferWidth)
|
||||
|
|
Loading…
Reference in New Issue