From 570e4ce85ecbbd49067a53c02b401093d921490f Mon Sep 17 00:00:00 2001 From: gabest11 Date: Mon, 3 Aug 2009 00:17:35 +0000 Subject: [PATCH] GSdx: fixed dx9 + msaa=0 git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1598 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/GSdx/GSDevice9.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/GSdx/GSDevice9.cpp b/plugins/GSdx/GSDevice9.cpp index e47ca99785..a3b45ed01e 100644 --- a/plugins/GSdx/GSDevice9.cpp +++ b/plugins/GSdx/GSDevice9.cpp @@ -490,8 +490,6 @@ GSTexture* GSDevice9::Create(int type, int w, int h, bool msaa, int format) CComPtr texture; CComPtr 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);