win32: only set sampler state for fragment
This commit is contained in:
parent
d5cd9ae78c
commit
2b6eff3d4c
@ -675,9 +675,9 @@ void CD3DCG::setShaderVars(int pass)
|
||||
}\
|
||||
if(cgpv) {\
|
||||
cgD3D9SetTexture(cgpv,val);\
|
||||
cgD3D9SetSamplerState(cgpv, D3DSAMP_ADDRESSU, D3DTADDRESS_BORDER);\
|
||||
/*cgD3D9SetSamplerState(cgpv, D3DSAMP_ADDRESSU, D3DTADDRESS_BORDER);\
|
||||
cgD3D9SetSamplerState(cgpv, D3DSAMP_ADDRESSV, D3DTADDRESS_BORDER);\
|
||||
/*cgD3D9SetSamplerState(cgpv, D3DSAMP_MINFILTER, linear?D3DTEXF_LINEAR:D3DTEXF_POINT);\
|
||||
cgD3D9SetSamplerState(cgpv, D3DSAMP_MINFILTER, linear?D3DTEXF_LINEAR:D3DTEXF_POINT);\
|
||||
cgD3D9SetSamplerState(cgpv, D3DSAMP_MAGFILTER, linear?D3DTEXF_LINEAR:D3DTEXF_POINT);*/\
|
||||
}\
|
||||
}\
|
||||
|
Loading…
Reference in New Issue
Block a user