mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
mesa: Fix orientation adjustment for reading stencil pixels.
Fixes conform spcorner.c & spclear.c failure.
This commit is contained in:
parent
6b187cc8a5
commit
8332925c3c
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue