diff options
| author | Rodolfo Osvaldo Bogado <rodolfoosvaldobogado@gmail.com> | 2009-10-30 22:28:59 +0000 |
|---|---|---|
| committer | Rodolfo Osvaldo Bogado <rodolfoosvaldobogado@gmail.com> | 2009-10-30 22:28:59 +0000 |
| commit | 9a5961956064da94e61e64b4c48fc620ffafcafd (patch) | |
| tree | 73668a67840f4011a897c7c1f13d201e5d6da913 /Source/Core/VideoCommon/Src/XFStructs.cpp | |
| parent | 0daa5add4699d812078bb5342938b731eeb9249b (diff) | |
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
Diffstat (limited to 'Source/Core/VideoCommon/Src/XFStructs.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Src/XFStructs.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/Src/XFStructs.cpp b/Source/Core/VideoCommon/Src/XFStructs.cpp index 5fd25d31d1..0ccc09c398 100644 --- a/Source/Core/VideoCommon/Src/XFStructs.cpp +++ b/Source/Core/VideoCommon/Src/XFStructs.cpp @@ -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; |
