Log unknown fog types in Warn log, and tiny code cleanup.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3885 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
e4a9faeba4
commit
7f00960a32
|
@ -914,7 +914,9 @@ static void WriteFog(char *&p)
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (bpmem.fog.c_proj_fsel.fsel)
|
switch (bpmem.fog.c_proj_fsel.fsel)
|
||||||
{
|
{
|
||||||
|
case 0: // TODO - No fog?
|
||||||
|
break;
|
||||||
case 2: // linear
|
case 2: // linear
|
||||||
// empty
|
// empty
|
||||||
break;
|
break;
|
||||||
|
@ -932,7 +934,7 @@ static void WriteFog(char *&p)
|
||||||
WRITE(p, " fog = 1.0f - fog;\n");
|
WRITE(p, " fog = 1.0f - fog;\n");
|
||||||
WRITE(p, " fog = pow(2, -8.0f * fog * fog);\n");
|
WRITE(p, " fog = pow(2, -8.0f * fog * fog);\n");
|
||||||
break;
|
break;
|
||||||
default: PanicAlert("Unknown Fog Type! %08x", bpmem.fog.c_proj_fsel.fsel);
|
default: WARN_LOG(VIDEO, "Unknown Fog Type! %08x", bpmem.fog.c_proj_fsel.fsel);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (enabled)
|
if (enabled)
|
||||||
|
|
|
@ -110,11 +110,6 @@ static Common::Event s_swapResponseEvent;
|
||||||
static volatile u32 s_efbAccessRequested = false;
|
static volatile u32 s_efbAccessRequested = false;
|
||||||
static Common::Event s_efbResponseEvent;
|
static Common::Event s_efbResponseEvent;
|
||||||
|
|
||||||
#if defined(HAVE_WX) && HAVE_WX
|
|
||||||
|
|
||||||
#endif // HAVE_WX
|
|
||||||
|
|
||||||
|
|
||||||
void GetDllInfo (PLUGIN_INFO* _PluginInfo)
|
void GetDllInfo (PLUGIN_INFO* _PluginInfo)
|
||||||
{
|
{
|
||||||
_PluginInfo->Version = 0x0100;
|
_PluginInfo->Version = 0x0100;
|
||||||
|
|
Loading…
Reference in New Issue