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:
		| @@ -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[] = { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 wu@webrtc.org
					wu@webrtc.org