mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-12 09:09:29 +01:00
Viewport clipping/overage fix
This commit is contained in:
1 parent
ffe35f73af
commit
5bfcd07b35
1 file changed
+1
-1
@@ -879,7 +879,7 @@ void TransformDrawEngine::ApplyDrawState(int prim) {
|
||||
float overageTop = std::max(-top, 0.0f);
|
||||
float overageBottom = std::max(bottom - renderHeight, 0.0f);
|
||||
// Our center drifted by the difference in overages.
|
||||
float drift = overageTop - overageBottom;
|
||||
float drift = overageBottom - overageTop;
|
||||
|
||||
top += overageTop;
|
||||
bottom -= overageBottom;
|
||||
|
||||
Reference in new issue
Block a user