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/attrib.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/mesa/main/attrib.c') diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c index d7a6ad7425..57489b59f2 100644 --- a/src/mesa/main/attrib.c +++ b/src/mesa/main/attrib.c @@ -1,4 +1,4 @@ -/* $Id: attrib.c,v 1.15 2000/02/02 22:03:31 brianp Exp $ */ +/* $Id: attrib.c,v 1.16 2000/02/25 03:55:39 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -423,6 +423,7 @@ _mesa_PopAttrib(void) GLubyte oldAlphaRef = ctx->Color.AlphaRef; GLenum oldBlendSrc = ctx->Color.BlendSrcRGB; GLenum oldBlendDst = ctx->Color.BlendDstRGB; + GLenum oldLogicOp = ctx->Color.LogicOp; MEMCPY( &ctx->Color, attr->data, sizeof(struct gl_colorbuffer_attrib) ); if (ctx->Color.DrawBuffer != oldDrawBuffer) { @@ -438,6 +439,9 @@ _mesa_PopAttrib(void) ctx->Driver.BlendFunc) (*ctx->Driver.BlendFunc)( ctx, ctx->Color.BlendSrcRGB, ctx->Color.BlendDstRGB); + if (ctx->Color.LogicOp != oldLogicOp && + ctx->Driver.LogicOpcode) + ctx->Driver.LogicOpcode( ctx, ctx->Color.LogicOp ); } break; case GL_CURRENT_BIT: -- cgit v1.2.3