diff options
author | Axel Davy <[email protected]> | 2015-04-23 21:46:24 +0200 |
---|---|---|
committer | Axel Davy <[email protected]> | 2015-04-29 08:28:10 +0200 |
commit | 907f28f87e3858028bce4477f0b57f7e5d76060a (patch) | |
tree | 586f7282e2d89ce66a74eed0a797fbc4e1addf13 /src/gallium/state_trackers | |
parent | 6e825b69bd4fb163cba0a565616ed966fb1a8929 (diff) |
st/nine: Fix comment in update_viewport
Reviewed-by: Ilia Mirkin <[email protected]>
Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/nine/nine_state.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/nine/nine_state.c b/src/gallium/state_trackers/nine/nine_state.c index 6c7eab3c25c..27800c61c2a 100644 --- a/src/gallium/state_trackers/nine/nine_state.c +++ b/src/gallium/state_trackers/nine/nine_state.c @@ -138,10 +138,9 @@ update_viewport(struct NineDevice9 *device) const D3DVIEWPORT9 *vport = &device->state.viewport; struct pipe_viewport_state pvport; - /* XXX: - * I hope D3D clip coordinates are still + /* D3D coordinates are: * -1 .. +1 for X,Y and - * 0 .. +1 for Z (use pipe_rasterizer_state.clip_halfz) + * 0 .. +1 for Z (we use pipe_rasterizer_state.clip_halfz) */ pvport.scale[0] = (float)vport->Width * 0.5f; pvport.scale[1] = (float)vport->Height * -0.5f; |