mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 18:58:36 +12:00
RSX Bugfixes and plugging memory leaks
BUGFIX: Add break after NV4097_SET_TEXTURE_BORDER_COLOR in RSXThread.cpp BUGFIX: Fix parameters passed to RSXTexture::SetControl3 (they were being passed in reverse order) BUGFIX: Remove invalid, non-sensical call to glPixelStorei in GLGSRender.h BUGFIX: Fix signed/unsigned comparison compiler warnings in GLGSRender.h CHANGE: Make GLFragmentProgram::Decompiler synchronous by default CHANGE: Update wxWidgets submodule to latest commit BUGFIX: Fix several memory leaks ADDED: Created a new MSVC debug configuration to output locations of allocations that end up leaking after the program is closed. BUGFIX: Fix the stupid PadHandler crash due to the lack of a virtual d'tor
This commit is contained in:
commit
d136adc73f
46 changed files with 617 additions and 149 deletions
|
@ -13,7 +13,9 @@ namespace detail{
|
|||
void default_syscall();
|
||||
static func_caller *null_func = bind_func(default_syscall);
|
||||
|
||||
static func_caller* sc_table[1024] =
|
||||
static const int kSyscallTableLength = 1024;
|
||||
|
||||
static func_caller* sc_table[kSyscallTableLength] =
|
||||
{
|
||||
null_func,
|
||||
bind_func(sys_process_getpid), //1 (0x001)
|
||||
|
@ -502,6 +504,24 @@ static func_caller* sc_table[1024] =
|
|||
null_func, null_func, null_func, bind_func(cellGcmCallback), //1024
|
||||
};
|
||||
|
||||
/** HACK: Used to delete func_caller objects that get allocated and stored in sc_table (above).
|
||||
* The destructor of this static object gets called when the program shuts down.
|
||||
*/
|
||||
struct SyscallTableCleaner_t
|
||||
{
|
||||
SyscallTableCleaner_t() {}
|
||||
~SyscallTableCleaner_t()
|
||||
{
|
||||
for (int i = 0; i < kSyscallTableLength; ++i)
|
||||
{
|
||||
if (sc_table[i] != null_func)
|
||||
delete sc_table[i];
|
||||
}
|
||||
|
||||
delete null_func;
|
||||
}
|
||||
} SyscallTableCleaner_t;
|
||||
|
||||
void default_syscall()
|
||||
{
|
||||
declCPU();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue