From e828bc8f61736f6ba2eff7b2d3dd24056c8b86e0 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Fri, 25 Feb 2000 03:55:39 +0000 Subject: Fog coordinate stage which drivers may use to replace standard fogging mechanism. LogicOp state change callback --- src/mesa/main/lines.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/mesa/main/lines.c') diff --git a/src/mesa/main/lines.c b/src/mesa/main/lines.c index 199686f60f3..52e9dca7d66 100644 --- a/src/mesa/main/lines.c +++ b/src/mesa/main/lines.c @@ -1,4 +1,4 @@ -/* $Id: lines.c,v 1.6 1999/11/11 01:22:27 brianp Exp $ */ +/* $Id: lines.c,v 1.7 2000/02/25 03:55:40 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -1024,8 +1024,7 @@ void gl_set_line_function( GLcontext *ctx ) else { if (ctx->Light.ShadeModel==GL_SMOOTH) { /* Width==1, non-stippled, smooth-shaded */ - if (ctx->Depth.Test - || (ctx->Fog.Enabled && ctx->Hint.Fog==GL_NICEST)) { + if (ctx->Depth.Test || ctx->FogMode == FOG_FRAGMENT) { if (rgbmode) ctx->Driver.LineFunc = smooth_rgba_z_line; else @@ -1040,8 +1039,7 @@ void gl_set_line_function( GLcontext *ctx ) } else { /* Width==1, non-stippled, flat-shaded */ - if (ctx->Depth.Test - || (ctx->Fog.Enabled && ctx->Hint.Fog==GL_NICEST)) { + if (ctx->Depth.Test || ctx->FogMode == FOG_FRAGMENT) { if (rgbmode) ctx->Driver.LineFunc = flat_rgba_z_line; else -- cgit v1.2.3