From 69cfdb2fcb6c6d5538aff6533b587a54fb2e74c3 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Thu, 30 Sep 1999 11:18:21 +0000 Subject: more hooks for mga driver, including an immediate fastpath --- src/mesa/main/light.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/mesa/main/light.c') diff --git a/src/mesa/main/light.c b/src/mesa/main/light.c index 893438d4457..715084bee62 100644 --- a/src/mesa/main/light.c +++ b/src/mesa/main/light.c @@ -1,4 +1,4 @@ -/* $Id: light.c,v 1.2 1999/09/18 20:41:23 keithw Exp $ */ +/* $Id: light.c,v 1.3 1999/09/30 11:18:22 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -168,6 +168,9 @@ void gl_Lightfv( GLcontext *ctx, break; } + if (ctx->Driver.Lightfv) + ctx->Driver.Lightfv( ctx, light, pname, params, nparams ); + ctx->NewState |= NEW_LIGHTING; } @@ -328,6 +331,10 @@ void gl_LightModelfv( GLcontext *ctx, GLenum pname, const GLfloat *params ) gl_error( ctx, GL_INVALID_ENUM, "glLightModel" ); break; } + + if (ctx->Driver.LightModelfv) + ctx->Driver.LightModelfv( ctx, pname, params ); + ctx->NewState |= NEW_LIGHTING; } -- cgit v1.2.3