From e7c41ae9e689a59ddfe48dd0e8395e9db59c7fba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Kapu=C5=9Bci=C5=84ski?= Date: Thu, 10 Nov 2016 13:00:42 +0100 Subject: [PATCH] Correction in changing wrap mode in SetState --- src/graphics/engine/engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics/engine/engine.cpp b/src/graphics/engine/engine.cpp index 5c4a317a..21a5beb5 100644 --- a/src/graphics/engine/engine.cpp +++ b/src/graphics/engine/engine.cpp @@ -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);