mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-14 10:09:32 +01:00
SoftGPU: Correct negative coord handling.
Fixes #5159 - we need this signed to handle negative values properly.
This commit is contained in:
1 parent
627c280031
commit
dfed20701a
4 files changed
+13
-14
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user