summaryrefslogtreecommitdiff
path: root/src/mesa/main/light.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>1999-09-30 11:18:21 +0000
committerKeith Whitwell <keith@tungstengraphics.com>1999-09-30 11:18:21 +0000
commit69cfdb2fcb6c6d5538aff6533b587a54fb2e74c3 (patch)
tree45a8d29aa8aff368d4e4c3ca6442a0566c16d6a4 /src/mesa/main/light.c
parent0b6ae412d32ca2756f659f11d0c919812097716f (diff)
more hooks for mga driver, including an immediate fastpath
Diffstat (limited to 'src/mesa/main/light.c')
-rw-r--r--src/mesa/main/light.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mesa/main/light.c b/src/mesa/main/light.c
index 893438d445..715084bee6 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;
}