summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/VertexLoader_Position.cpp
diff options
context:
space:
mode:
authordonkopunchstania <donkopunchstania@gmail.com>2009-06-13 17:44:14 +0000
committerdonkopunchstania <donkopunchstania@gmail.com>2009-06-13 17:44:14 +0000
commitfcd7fa997b15aa116e3af7c7572e8c247064a7fc (patch)
tree922e9087752c6ed143d53f87ab6321f39351ceac /Source/Core/VideoCommon/Src/VertexLoader_Position.cpp
parent10442c8faa1e9d3f69496160a3d3ff9f0c321ee9 (diff)
Possible fix for projection hacks
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3427 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/VertexLoader_Position.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/VertexLoader_Position.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Core/VideoCommon/Src/VertexLoader_Position.cpp b/Source/Core/VideoCommon/Src/VertexLoader_Position.cpp
index 278b32f92f..07601ada61 100644
--- a/Source/Core/VideoCommon/Src/VertexLoader_Position.cpp
+++ b/Source/Core/VideoCommon/Src/VertexLoader_Position.cpp
@@ -85,7 +85,7 @@ void Pos_ReadDirect()
if (three)
((float*)VertexManager::s_pCurBufferPointer)[2] = (float)(T)DataRead<T>() * posScale;
else
- ((float*)VertexManager::s_pCurBufferPointer)[2] = 1.0f;
+ ((float*)VertexManager::s_pCurBufferPointer)[2] = 0.0f;
LOG_VTX();
VertexManager::s_pCurBufferPointer += 12;
}
@@ -115,7 +115,7 @@ void LOADERDECL Pos_ReadDirect_Float2()
// No need to use floating point here.
((u32 *)VertexManager::s_pCurBufferPointer)[0] = DataReadU32();
((u32 *)VertexManager::s_pCurBufferPointer)[1] = DataReadU32();
- ((u32 *)VertexManager::s_pCurBufferPointer)[2] = 0x3f800000; // 1.0f
+ ((u32 *)VertexManager::s_pCurBufferPointer)[2] = 0;
LOG_VTX();
VertexManager::s_pCurBufferPointer += 12;
}
@@ -130,7 +130,7 @@ inline void Pos_ReadIndex_Byte(int Index)
if (three)
((float*)VertexManager::s_pCurBufferPointer)[2] = ((float)(T)(pData[2])) * posScale;
else
- ((float*)VertexManager::s_pCurBufferPointer)[2] = 1.0f;
+ ((float*)VertexManager::s_pCurBufferPointer)[2] = 0.0f;
LOG_VTX();
VertexManager::s_pCurBufferPointer += 12;
}
@@ -144,7 +144,7 @@ inline void Pos_ReadIndex_Short(int Index)
if (three)
((float*)VertexManager::s_pCurBufferPointer)[2] = ((float)(T)Common::swap16(pData[2])) * posScale;
else
- ((float*)VertexManager::s_pCurBufferPointer)[2] = 1.0f;
+ ((float*)VertexManager::s_pCurBufferPointer)[2] = 0.0f;
LOG_VTX();
VertexManager::s_pCurBufferPointer += 12;
}
@@ -158,7 +158,7 @@ inline void Pos_ReadIndex_Float(int Index)
if (three)
((u32*)VertexManager::s_pCurBufferPointer)[2] = Common::swap32(pData[2]);
else
- ((float*)VertexManager::s_pCurBufferPointer)[2] = 1.0f;
+ ((float*)VertexManager::s_pCurBufferPointer)[2] = 0.0f;
LOG_VTX();
VertexManager::s_pCurBufferPointer += 12;
}