mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 06:39:46 -06:00
Trying a fix to floating point single (issue 1556), Sonic Unleashed now have correct projections, also re-enabled color buffer clear on OpenGL plugin (was causing flickering in fullscreen and garbage on sides...)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4441 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -87,8 +87,11 @@ inline double ForceSingle(double _x)
|
||||
// PanicAlert("RN = %d at %x", (int)FPSCR.RN, PC);
|
||||
if (FPSCR.NI)
|
||||
_x = FlushToZeroAsFloat(_x);
|
||||
double x = static_cast<float>(_x);
|
||||
return x;
|
||||
IntDouble single;
|
||||
single.d = _x;
|
||||
memset(&single.i, 0, 4);
|
||||
|
||||
return single.d;
|
||||
}
|
||||
|
||||
inline double ForceDouble(double d)
|
||||
|
@ -39,7 +39,6 @@
|
||||
|
||||
// TODO: Investigate a memory leak on save/load state
|
||||
|
||||
|
||||
#if defined(__LZO_STRICT_16BIT)
|
||||
#define IN_LEN (8*1024u)
|
||||
#elif defined(LZO_ARCH_I086) && !defined(LZO_HAVE_MM_HUGE_ARRAY)
|
||||
@ -71,18 +70,18 @@ static bool const bCompressed = true;
|
||||
|
||||
static Common::Thread *saveThread = NULL;
|
||||
|
||||
enum
|
||||
{
|
||||
version = 1,
|
||||
};
|
||||
|
||||
// Don't forget to increase this after doing changes on the savestate system
|
||||
#define STATE_VERSION 1
|
||||
|
||||
|
||||
void DoState(PointerWrap &p)
|
||||
{
|
||||
u32 cookie = 0xBAADBABE + version;
|
||||
u32 cookie = 0xBAADBABE + STATE_VERSION;
|
||||
p.Do(cookie);
|
||||
if (cookie != 0xBAADBABE + version)
|
||||
if (cookie != 0xBAADBABE + STATE_VERSION)
|
||||
{
|
||||
PanicAlert("Can't load states from other versions.");
|
||||
PanicAlert("Savestate version mismatch !\nSorry, you can't load states from others revisions.");
|
||||
return;
|
||||
}
|
||||
// Begin with video plugin, so that it gets a chance to clear it's caches and writeback modified things to RAM
|
||||
|
@ -163,7 +163,7 @@ void CBreakPointWindow::OnAddBreakPointMany()
|
||||
}
|
||||
else
|
||||
{
|
||||
wxMessageBox(_T("You have no GameIni/BreakPoints.ini file"));
|
||||
wxMessageBox(_T("Couldn't find User/GameConfig/BreakPoints.ini file"));
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user