mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
75284c9b76
commit
e2ff25963b
|
@ -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)))
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue