mesa: Fix orientation adjustment for reading stencil pixels.

Fixes conform spcorner.c & spclear.c failure.
This commit is contained in:
José Fonseca
2009-04-06 20:36:54 +01:00
parent 6b187cc8a5
commit 8332925c3c

View File

@@ -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 */