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

Fix fb texture offsetS.

Fixed IR scanner in Perfect Dark.
This commit is contained in:
Sergey Lipskiy 2014-12-26 19:23:03 +06:00
parent 5b8986874a
commit 99b0bc1e59

View File

@ -521,7 +521,7 @@ void FrameBuffer_ActivateBufferTexture(s16 t, FrameBuffer *pBuffer)
}
else
{
pBuffer->m_pTexture->offsetS = (float)(shift % factor);
pBuffer->m_pTexture->offsetS = (float)((shift % factor) >> pBuffer->m_size << 1);
pBuffer->m_pTexture->offsetT = (float)(pBuffer->m_height - shift/factor);
}