diff options
author | José Fonseca <[email protected]> | 2009-04-06 20:36:54 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-04-06 20:38:37 +0100 |
commit | 8332925c3caadd293d0c091ef84f7268c673013c (patch) | |
tree | 9e04760cac673216219aab0a386a047312466167 /src/mesa | |
parent | 6b187cc8a5041fe2bba1ecc34aa86516ebe8b1b0 (diff) |
mesa: Fix orientation adjustment for reading stencil pixels.
Fixes conform spcorner.c & spclear.c failure.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_cb_readpixels.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_cb_readpixels.c b/src/mesa/state_tracker/st_cb_readpixels.c index ce7a8cda4e8..e151efcb88f 100644 --- a/src/mesa/state_tracker/st_cb_readpixels.c +++ b/src/mesa/state_tracker/st_cb_readpixels.c @@ -68,7 +68,7 @@ st_read_stencil_pixels(GLcontext *ctx, GLint x, GLint y, GLint j; if (st_fb_orientation(ctx->DrawBuffer) == Y_0_TOP) { - y = ctx->DrawBuffer->Height - y - 1; + y = ctx->DrawBuffer->Height - y - height; } /* Create a read transfer from the renderbuffer's texture */ |