Use the Linear Texture Filtering as the magnification, minification, or mipmapping filter to reduce the blurriness when the texture needs to be magnified or minified.
BUG=689 Review URL: https://webrtc-codereview.appspot.com/731010 git-svn-id: http://webrtc.googlecode.com/svn/trunk@2631 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
9ea1be81d8
commit
21c822ce8d
@ -512,8 +512,10 @@ int VideoRenderDirect3D9::InitDevice()
|
||||
_pd3dDevice->SetRenderState(D3DRS_ALPHABLENDENABLE, TRUE);
|
||||
_pd3dDevice->SetRenderState(D3DRS_SRCBLEND, D3DBLEND_SRCALPHA);
|
||||
_pd3dDevice->SetRenderState(D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA);
|
||||
//_pd3dDevice->SetTextureStageState(0,D3DTSS_ALPHAOP,D3DTOP_SELECTARG1);
|
||||
//_pd3dDevice->SetTextureStageState(0,D3DTSS_ALPHAARG1,D3DTA_TEXTURE);
|
||||
|
||||
_pd3dDevice->SetSamplerState( 0, D3DSAMP_MINFILTER, D3DTEXF_LINEAR );
|
||||
_pd3dDevice->SetSamplerState( 0, D3DSAMP_MAGFILTER, D3DTEXF_LINEAR );
|
||||
_pd3dDevice->SetSamplerState( 0, D3DSAMP_MIPFILTER, D3DTEXF_LINEAR );
|
||||
|
||||
// Initialize Vertices
|
||||
CUSTOMVERTEX Vertices[] = {
|
||||
|
Loading…
Reference in New Issue
Block a user