SoftGPU: Correct negative coord handling.

Fixes #5159 - we need this signed to handle negative values properly.
This commit is contained in:
Unknown W. Brackets committed 2017-04-15 19:52:17 -07:00
1 parent 627c280031
commit dfed20701a
4 files changed
+13 -14

No files matched your search

+2 -2
View File
@@ -191,8 +191,8 @@ VertexData TransformUnit::ReadVertex(VertexReader& vreader)
Lighting::Process(vertex, vreader.hasColor0());
} else {
vertex.screenpos.x = (u32)pos[0] * 16 + gstate.getOffsetX16();
vertex.screenpos.y = (u32)pos[1] * 16 + gstate.getOffsetY16();
vertex.screenpos.x = (int)(pos[0] * 16) + gstate.getOffsetX16();
vertex.screenpos.y = (int)(pos[1] * 16) + gstate.getOffsetY16();
vertex.screenpos.z = pos[2];
vertex.clippos.w = 1.f;
vertex.fogdepth = 1.f;