summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/blend.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>1999-09-30 11:18:21 +0000
committerKeith Whitwell <[email protected]>1999-09-30 11:18:21 +0000
commit69cfdb2fcb6c6d5538aff6533b587a54fb2e74c3 (patch)
tree45a8d29aa8aff368d4e4c3ca6442a0566c16d6a4 /src/mesa/main/blend.c
parent0b6ae412d32ca2756f659f11d0c919812097716f (diff)
more hooks for mga driver, including an immediate fastpath
Diffstat (limited to 'src/mesa/main/blend.c')
-rw-r--r--src/mesa/main/blend.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mesa/main/blend.c b/src/mesa/main/blend.c
index deac05c489d..6bf3581b8fb 100644
--- a/src/mesa/main/blend.c
+++ b/src/mesa/main/blend.c
@@ -1,4 +1,4 @@
-/* $Id: blend.c,v 1.2 1999/08/19 15:48:01 brianp Exp $ */
+/* $Id: blend.c,v 1.3 1999/09/30 11:18:21 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -203,6 +203,11 @@ gl_BlendFuncSeparate( GLcontext *ctx, GLenum sfactorRGB, GLenum dfactorRGB,
ctx->Color.BlendFunc = NULL;
ctx->NewState |= NEW_RASTER_OPS;
+
+ if (ctx->Driver.BlendFuncSeparate) {
+ (*ctx->Driver.BlendFuncSeparate)( ctx, sfactorRGB, dfactorRGB,
+ sfactorA, dfactorA );
+ }
}
@@ -243,6 +248,9 @@ void gl_BlendEquation( GLcontext *ctx, GLenum mode )
ctx->Color.BlendFunc = NULL;
ctx->NewState |= NEW_RASTER_OPS;
+
+ if (ctx->Driver.BlendEquation)
+ ctx->Driver.BlendEquation( ctx, mode );
}