1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00

Correct texturedRectDepthBufferCopy.

This commit is contained in:
Sergey Lipskiy 2014-10-25 23:25:13 +07:00
parent f11617bfa0
commit ad2de9ba77

View File

@ -821,11 +821,8 @@ bool texturedRectDepthBufferCopy(const OGLRender::TexturedRectParams & _params)
const u32 ulx = (u32)_params.ulx;
u16 * pSrc = ((u16*)TMEM) + (u32)floorf(_params.uls + 0.5f);
u16 *pDst = (u16*)(RDRAM + gDP.colorImage.address);
for (u32 x = 0; x < width; ++x) {
u16 c = pSrc[x];
c = ((c << 8) & 0xFF00) | (c >> 8);
pDst[(ulx + x) ^ 1] = c;
}
for (u32 x = 0; x < width; ++x)
pDst[(ulx + x) ^ 1] = swapword(pSrc[x]);
return true;
}