mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
fix
This commit is contained in:
parent
7713860b63
commit
620897ecdd
1 changed files with 2 additions and 2 deletions
|
@ -242,8 +242,8 @@ void GLInstance::SetPalswap(int index)
|
||||||
{
|
{
|
||||||
float v1 = index * renderState.PalswapSize[0];
|
float v1 = index * renderState.PalswapSize[0];
|
||||||
float v2 = floorf(v1);
|
float v2 = floorf(v1);
|
||||||
renderState.PalswapPos[0] = renderState.PalswapPos[0] - renderState.PalswapPos[1] + (0.5f / PALSWAP_TEXTURE_SIZE);
|
renderState.PalswapPos[0] = v1 - v2 + (0.5f / PALSWAP_TEXTURE_SIZE);
|
||||||
renderState.PalswapPos[1] = renderState.PalswapPos[1] * renderState.PalswapSize[1] + (0.5f / PALSWAP_TEXTURE_SIZE);
|
renderState.PalswapPos[1] = v2 * renderState.PalswapSize[1] + (0.5f / PALSWAP_TEXTURE_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue