mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 22:49:00 +01:00
Extra small commit but ...
Fix Paper mario and any games that uses SETZSCALE or SETZOFFSET c# is making me soft i don't see the cast error git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4485 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
0daa5add46
commit
9a59619560
@ -175,8 +175,8 @@ void LoadXFReg(u32 transferSize, u32 baseAddress, u32 *pData)
|
||||
// Killer 7 writes 16777216.0f here
|
||||
case XFMEM_SETZSCALE:
|
||||
VertexManager::Flush();
|
||||
VertexShaderManager::SetZScale((float)data);
|
||||
PixelShaderManager::SetZScale((float)data);
|
||||
VertexShaderManager::SetZScale(*(float*)&data);
|
||||
PixelShaderManager::SetZScale(*(float*)&data);
|
||||
INFO_LOG(VIDEO, "Set ZScale : %x=%x\n", address, data);
|
||||
break;
|
||||
|
||||
@ -184,8 +184,8 @@ void LoadXFReg(u32 transferSize, u32 baseAddress, u32 *pData)
|
||||
// Killer 7 alterns this between 16777216.0f and 16710107.0f
|
||||
case XFMEM_SETZOFFSET:
|
||||
VertexManager::Flush();
|
||||
VertexShaderManager::SetZOffset((float)data);
|
||||
PixelShaderManager::SetZOffset((float)data);
|
||||
VertexShaderManager::SetZOffset(*(float*)&data);
|
||||
PixelShaderManager::SetZOffset(*(float*)&data);
|
||||
INFO_LOG(VIDEO, "Set ZOffset : %x=%x\n", address, data);
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user