Correction in changing wrap mode in SetState

dev-buzzingcars
Tomasz Kapuściński 2016-11-10 13:00:42 +01:00
parent 9fe85e280a
commit e7c41ae9e6
1 changed files with 1 additions and 1 deletions

View File

@ -2194,7 +2194,7 @@ void CEngine::SetState(int state, const Color& color)
m_device->SetTextureStageWrap(0, TEX_WRAP_REPEAT, TEX_WRAP_REPEAT);
m_device->SetTextureStageWrap(1, TEX_WRAP_REPEAT, TEX_WRAP_REPEAT);
}
else // if (state & ENG_RSTATE_CLAMP) or otherwise
else if (state & ENG_RSTATE_CLAMP)
{
m_device->SetTextureStageWrap(0, TEX_WRAP_CLAMP, TEX_WRAP_CLAMP);
m_device->SetTextureStageWrap(1, TEX_WRAP_CLAMP, TEX_WRAP_CLAMP);