state.depth.range alpha value should be 1, not 0 (bug #14733)
authorRoland Scheidegger <sroland@tungstengraphics.com>
Sat, 1 Mar 2008 01:56:08 +0000 (02:56 +0100)
committerRoland Scheidegger <sroland@tungstengraphics.com>
Sat, 1 Mar 2008 01:56:08 +0000 (02:56 +0100)
src/mesa/shader/prog_statevars.c

index c5dda018613bd9b504eb72684529795c1f4bd200..da0bb85f16fb7a3998f88e8c4d748997ffc3967e 100644 (file)
@@ -349,7 +349,7 @@ _mesa_fetch_state(GLcontext *ctx, const gl_state_index state[],
       value[0] = ctx->Viewport.Near;                     /* near       */
       value[1] = ctx->Viewport.Far;                      /* far        */
       value[2] = ctx->Viewport.Far - ctx->Viewport.Near; /* far - near */
-      value[3] = 0;
+      value[3] = 1.0;
       return;
    case STATE_FRAGMENT_PROGRAM:
       {