From 245364b7c1edfa5d35e11d6c17c9d686aff4ee11 Mon Sep 17 00:00:00 2001 From: OV2 Date: Sat, 10 Dec 2011 19:17:03 +0100 Subject: [PATCH] Win32: use D3DTADDRESS_BORDER in every pass --- win32/CD3DCG.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/win32/CD3DCG.cpp b/win32/CD3DCG.cpp index 29dbfd8d..f15de2d1 100644 --- a/win32/CD3DCG.cpp +++ b/win32/CD3DCG.cpp @@ -546,6 +546,8 @@ void CD3DCG::Render(LPDIRECT3DTEXTURE9 &origTex, D3DXVECTOR2 textureSize, pDevice->SetVertexDeclaration(shaderPasses[i].vertexDeclaration); setVertexStream(shaderPasses[i].vertexBuffer, shaderPasses[i-1].outputSize,shaderPasses[i-1].textureSize,shaderPasses[i].outputSize); + pDevice->SetSamplerState(0, D3DSAMP_ADDRESSU, D3DTADDRESS_BORDER); + pDevice->SetSamplerState(0, D3DSAMP_ADDRESSV, D3DTADDRESS_BORDER); pDevice->SetSamplerState(0, D3DSAMP_MAGFILTER, shaderPasses[i].linearFilter?D3DTEXF_LINEAR:D3DTEXF_POINT); pDevice->SetSamplerState(0, D3DSAMP_MINFILTER, shaderPasses[i].linearFilter?D3DTEXF_LINEAR:D3DTEXF_POINT);