diff options
author | marha <marha@users.sourceforge.net> | 2011-05-03 12:48:26 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-05-03 12:48:26 +0000 |
commit | cc93496bdbb3e7aea51033ece75fa85cfb5845d4 (patch) | |
tree | 4346be8524d6ff90f89a403dc53c8519eacdf2e5 /mesalib/src/mesa/program | |
parent | 34f1ddbb272a5ad55f56d54e2f861da6360db04f (diff) | |
download | vcxsrv-cc93496bdbb3e7aea51033ece75fa85cfb5845d4.tar.gz vcxsrv-cc93496bdbb3e7aea51033ece75fa85cfb5845d4.tar.bz2 vcxsrv-cc93496bdbb3e7aea51033ece75fa85cfb5845d4.zip |
xkeyboard libxcb pixman mesa git update 2 May 2011
Diffstat (limited to 'mesalib/src/mesa/program')
-rw-r--r-- | mesalib/src/mesa/program/prog_statevars.c | 4 | ||||
-rw-r--r-- | mesalib/src/mesa/program/prog_statevars.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/mesalib/src/mesa/program/prog_statevars.c b/mesalib/src/mesa/program/prog_statevars.c index 1fd26f44d..d94d7fe5d 100644 --- a/mesalib/src/mesa/program/prog_statevars.c +++ b/mesalib/src/mesa/program/prog_statevars.c @@ -602,11 +602,11 @@ _mesa_fetch_state(struct gl_context *ctx, const gl_state_index state[], value[0] = 1.0F; value[1] = 0.0F; value[2] = -1.0F; - value[3] = (GLfloat) (ctx->DrawBuffer->Height - 1); + value[3] = (GLfloat) ctx->DrawBuffer->Height; } else { /* Flipping Y upside down (XY) followed by identity (ZW). */ value[0] = -1.0F; - value[1] = (GLfloat) (ctx->DrawBuffer->Height - 1); + value[1] = (GLfloat) ctx->DrawBuffer->Height; value[2] = 1.0F; value[3] = 0.0F; } diff --git a/mesalib/src/mesa/program/prog_statevars.h b/mesalib/src/mesa/program/prog_statevars.h index 9fe8d81b3..04af3f4cf 100644 --- a/mesalib/src/mesa/program/prog_statevars.h +++ b/mesalib/src/mesa/program/prog_statevars.h @@ -120,7 +120,7 @@ typedef enum gl_state_index_ { STATE_PT_BIAS, /**< Pixel transfer RGBA bias */ STATE_SHADOW_AMBIENT, /**< ARB_shadow_ambient fail value; token[2] is texture unit index */ STATE_FB_SIZE, /**< (width-1, height-1, 0, 0) */ - STATE_FB_WPOS_Y_TRANSFORM, /**< (1, 0, -1, height-1) if a FBO is bound, (-1, height-1, 1, 0) otherwise */ + STATE_FB_WPOS_Y_TRANSFORM, /**< (1, 0, -1, height) if a FBO is bound, (-1, height, 1, 0) otherwise */ STATE_ROT_MATRIX_0, /**< ATI_envmap_bumpmap, rot matrix row 0 */ STATE_ROT_MATRIX_1, /**< ATI_envmap_bumpmap, rot matrix row 1 */ STATE_INTERNAL_DRIVER /* first available state index for drivers (must be last) */ |