GSdx: fixed dx9 + msaa=0

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1598 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
gabest11 2009-08-03 00:17:35 +00:00
parent cea0f395aa
commit 570e4ce85e
1 changed files with 2 additions and 3 deletions

View File

@ -490,8 +490,6 @@ GSTexture* GSDevice9::Create(int type, int w, int h, bool msaa, int format)
CComPtr<IDirect3DTexture9> texture;
CComPtr<IDirect3DSurface9> surface;
// TODO: msaa
switch(type)
{
case GSTexture::RenderTarget:
@ -499,7 +497,8 @@ GSTexture* GSDevice9::Create(int type, int w, int h, bool msaa, int format)
else hr = m_dev->CreateTexture(w, h, 1, D3DUSAGE_RENDERTARGET, (D3DFORMAT)format, D3DPOOL_DEFAULT, &texture, NULL);
break;
case GSTexture::DepthStencil:
hr = m_dev->CreateDepthStencilSurface(w, h, (D3DFORMAT)format, (D3DMULTISAMPLE_TYPE)m_msaa_desc.Count, m_msaa_desc.Quality, FALSE, &surface, NULL);
if(msaa) hr = m_dev->CreateDepthStencilSurface(w, h, (D3DFORMAT)format, (D3DMULTISAMPLE_TYPE)m_msaa_desc.Count, m_msaa_desc.Quality, FALSE, &surface, NULL);
else hr = m_dev->CreateDepthStencilSurface(w, h, (D3DFORMAT)format, D3DMULTISAMPLE_NONE, 0, FALSE, &surface, NULL);
break;
case GSTexture::Texture:
hr = m_dev->CreateTexture(w, h, 1, 0, (D3DFORMAT)format, D3DPOOL_MANAGED, &texture, NULL);