mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
d3d: Clamp depth viewport to [0, 1] also.
This commit is contained in:
parent
cfee8f81e8
commit
932a593576
1 changed files with 2 additions and 0 deletions
|
@ -409,6 +409,8 @@ void TransformDrawEngineDX9::ApplyDrawState(int prim) {
|
|||
float top = std::max(0.0f, vpY0 + renderY);
|
||||
float right = std::min(left + vpWidth, renderWidth);
|
||||
float bottom = std::min(top + vpHeight, renderHeight);
|
||||
depthRangeMin = std::max(0.0f, depthRangeMin);
|
||||
depthRangeMax = std::min(1.0f, depthRangeMax);
|
||||
|
||||
dxstate.viewport.set(left, top, right - left, bottom - top, depthRangeMin, depthRangeMax);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue