mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-09-08 22:02:58 +02:00
Small round of patches for various issues, #2.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5831 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
+8
-3
@@ -1212,7 +1212,9 @@ EXPORT_C GSBenchmark(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow
|
||||
|
||||
if(1)
|
||||
{
|
||||
GSLocalMemory mem;
|
||||
GSLocalMemory * pMem = new GSLocalMemory();
|
||||
GSLocalMemory& mem(*pMem);
|
||||
|
||||
|
||||
static struct {int psm; const char* name;} s_format[] =
|
||||
{
|
||||
@@ -1360,13 +1362,15 @@ EXPORT_C GSBenchmark(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow
|
||||
}
|
||||
|
||||
_aligned_free(ptr);
|
||||
delete pMem;
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
if(0)
|
||||
{
|
||||
GSLocalMemory mem;
|
||||
GSLocalMemory * pMem2 = new GSLocalMemory();
|
||||
GSLocalMemory& mem2(*pMem2);
|
||||
|
||||
uint8* ptr = (uint8*)_aligned_malloc(1024 * 1024 * 4, 32);
|
||||
|
||||
@@ -1397,7 +1401,8 @@ EXPORT_C GSBenchmark(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow
|
||||
int x = 0;
|
||||
int y = 0;
|
||||
|
||||
(mem.*wi)(x, y, ptr, trlen, BITBLTBUF, TRXPOS, TRXREG);
|
||||
(mem2.*wi)(x, y, ptr, trlen, BITBLTBUF, TRXPOS, TRXREG);
|
||||
delete pMem2;
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user