GSDX: Applying patch for 2 small errors in GSDX provided by mathew1800.

Thanks to KrossX3 for aiding our laziness:P

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5605 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
refraction@gmail.com 2013-04-04 19:39:46 +00:00
parent 75284c9b76
commit e2ff25963b
2 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@ static D3DFORMAT BestD3dFormat(IDirect3D9* d3d, UINT adapter, D3DDEVTYPE devtype
if(1 == msaaCount) msaaCount = 0;
for(int i = 0; i < sizeof(fmts); i++)
for(int i = 0; i < countof(fmts); i++)
{
if(TestDepthFormat(d3d, adapter, devtype, fmts[i]) && (!msaaCount || IsMsaaSupported(d3d, adapter, devtype, fmts[i], msaaCount, msaa_desc)))
{

View File

@ -105,7 +105,7 @@ void GSSettingsDlg::OnInit()
buf, size,
NULL, NULL);
adapters.push_back(Adapter(buf, GSAdapter(desc), level));
delete buf;
delete [] buf;
#else
adapters.push_back(Adapter(desc.Description, GSAdapter(desc), level));
#endif