From dcf4c17fb1624af47181c63af4c3ad29f919c17a Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 31 Oct 2005 19:46:55 +0000 Subject: check swrast->_FogEnabled instead of ctx->Fog.Enabled --- src/mesa/swrast/s_lines.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mesa/swrast/s_lines.c') diff --git a/src/mesa/swrast/s_lines.c b/src/mesa/swrast/s_lines.c index 56179bcc05..dccc92cbd2 100644 --- a/src/mesa/swrast/s_lines.c +++ b/src/mesa/swrast/s_lines.c @@ -1,8 +1,8 @@ /* * Mesa 3-D graphics library - * Version: 6.3 + * Version: 6.5 * - * Copyright (C) 1999-2004 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2005 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -310,7 +310,7 @@ _swrast_choose_line( GLcontext *ctx ) USE(textured_line); } } - else if (ctx->Depth.Test || ctx->Fog.Enabled || ctx->Line._Width != 1.0 + else if (ctx->Depth.Test || swrast->_FogEnabled || ctx->Line._Width != 1.0 || ctx->Line.StippleFlag) { /* no texture, but Z, fog, width>1, stipple, etc. */ if (rgbmode) -- cgit v1.2.3