From 21c822ce8d4a0e198e6546a8eeac29f10803f863 Mon Sep 17 00:00:00 2001 From: "wu@webrtc.org" Date: Fri, 17 Aug 2012 16:59:18 +0000 Subject: [PATCH] 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 --- .../main/source/windows/video_render_direct3d9.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modules/video_render/main/source/windows/video_render_direct3d9.cc b/src/modules/video_render/main/source/windows/video_render_direct3d9.cc index 385b8aadac..309ccb3ee4 100644 --- a/src/modules/video_render/main/source/windows/video_render_direct3d9.cc +++ b/src/modules/video_render/main/source/windows/video_render_direct3d9.cc @@ -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[] = {