diff options
author | Keith Whitwell <[email protected]> | 2000-11-24 15:21:59 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2000-11-24 15:21:59 +0000 |
commit | 9aff6cfdc37f83a2528463179ad0b50893bf0c58 (patch) | |
tree | 0bb5482717e276ab6b95b47ba2eb3ff8685094bf /src/mesa/main | |
parent | 65dcc30599348c2bfd7952b888db27edd1670fc6 (diff) |
Fixed a couple of bugs that crept into last commit
- Eval not compiled correctly
- Material colors computed incorrectly
Reworked the VERT_TEX flags, now support upto 12 texture units in tnl.
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/Makefile.X11 | 4 | ||||
-rw-r--r-- | src/mesa/main/api_loopback.c | 2 | ||||
-rw-r--r-- | src/mesa/main/dlist.c | 11 | ||||
-rw-r--r-- | src/mesa/main/dlist.h | 6 | ||||
-rw-r--r-- | src/mesa/main/light.c | 6 |
5 files changed, 16 insertions, 13 deletions
diff --git a/src/mesa/main/Makefile.X11 b/src/mesa/main/Makefile.X11 index 84384f4c81e..00debd391d1 100644 --- a/src/mesa/main/Makefile.X11 +++ b/src/mesa/main/Makefile.X11 @@ -1,4 +1,4 @@ -# $Id: Makefile.X11,v 1.34 2000/11/24 10:25:05 keithw Exp $ +# $Id: Makefile.X11,v 1.35 2000/11/24 15:21:59 keithw Exp $ # Mesa 3-D graphics library # Version: 3.5 @@ -188,8 +188,8 @@ ASM_SOURCES = ADDITIONAL_OBJ = OBJECTS = $(ASM_SOURCES:.S=.o) \ - $(DRIVER_SOURCES:.c=.o) \ $(CORE_SOURCES:.c=.o) \ + $(DRIVER_SOURCES:.c=.o) \ $(ADDITIONAL_OBJ) diff --git a/src/mesa/main/api_loopback.c b/src/mesa/main/api_loopback.c index fd6a83e82f5..1ad51a65774 100644 --- a/src/mesa/main/api_loopback.c +++ b/src/mesa/main/api_loopback.c @@ -10,7 +10,7 @@ * hence 'loopback'. * * The driver must supply all of the remaining entry points, which are - * listed in vtxfmt.h. The easiest way for a driver to do this is to + * listed in dd.h. The easiest way for a driver to do this is to * install the supplied software t&l module. */ #define DRIVER(x) gl##x diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c index 171ae32ae19..22779cc56a3 100644 --- a/src/mesa/main/dlist.c +++ b/src/mesa/main/dlist.c @@ -1,4 +1,4 @@ -/* $Id: dlist.c,v 1.53 2000/11/24 10:25:05 keithw Exp $ */ +/* $Id: dlist.c,v 1.54 2000/11/24 15:21:59 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -1659,7 +1659,7 @@ static void save_Enable( GLenum cap ) -static void save_EvalMesh1( GLenum mode, GLint i1, GLint i2 ) +void _mesa_save_EvalMesh1( GLenum mode, GLint i1, GLint i2 ) { GET_CURRENT_CONTEXT(ctx); Node *n; @@ -1676,8 +1676,7 @@ static void save_EvalMesh1( GLenum mode, GLint i1, GLint i2 ) } -static void save_EvalMesh2( - GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2 ) +void _mesa_save_EvalMesh2(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2 ) { GET_CURRENT_CONTEXT(ctx); Node *n; @@ -4931,8 +4930,8 @@ _mesa_init_dlist_table( struct _glapi_table *table, GLuint tableSize ) table->DrawPixels = save_DrawPixels; table->Enable = save_Enable; table->EndList = _mesa_EndList; - table->EvalMesh1 = save_EvalMesh1; - table->EvalMesh2 = save_EvalMesh2; + table->EvalMesh1 = _mesa_save_EvalMesh1; + table->EvalMesh2 = _mesa_save_EvalMesh2; table->Finish = _mesa_Finish; table->Flush = _mesa_Flush; table->Fogf = save_Fogf; diff --git a/src/mesa/main/dlist.h b/src/mesa/main/dlist.h index 7ec6c2e681b..5d6faf97afa 100644 --- a/src/mesa/main/dlist.h +++ b/src/mesa/main/dlist.h @@ -1,4 +1,4 @@ -/* $Id: dlist.h,v 1.8 2000/11/22 07:32:16 joukj Exp $ */ +/* $Id: dlist.h,v 1.9 2000/11/24 15:21:59 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -66,5 +66,9 @@ _mesa_alloc_opcode( GLcontext *ctx, GLuint sz, void (*destroy)( GLcontext *, void * ), void (*print)( GLcontext *, void * ) ); +extern void _mesa_save_EvalMesh2(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2 ); +extern void _mesa_save_EvalMesh1( GLenum mode, GLint i1, GLint i2 ); + + #endif diff --git a/src/mesa/main/light.c b/src/mesa/main/light.c index af274eabcea..07571cd9656 100644 --- a/src/mesa/main/light.c +++ b/src/mesa/main/light.c @@ -1,4 +1,4 @@ -/* $Id: light.c,v 1.28 2000/11/24 10:25:05 keithw Exp $ */ +/* $Id: light.c,v 1.29 2000/11/24 15:21:59 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -601,14 +601,14 @@ void gl_update_material( GLcontext *ctx, struct gl_material *mat = &ctx->Light.Material[0]; COPY_4FV( mat->Specular, src[0].Specular ); foreach (light, list) { - ACC_SCALE_3V( light->_MatSpecular[0], light->Specular, mat->Specular); + SCALE_3V( light->_MatSpecular[0], light->Specular, mat->Specular); } } if (bitmask & BACK_SPECULAR_BIT) { struct gl_material *mat = &ctx->Light.Material[1]; COPY_4FV( mat->Specular, src[1].Specular ); foreach (light, list) { - ACC_SCALE_3V( light->_MatSpecular[1], light->Specular, mat->Specular); + SCALE_3V( light->_MatSpecular[1], light->Specular, mat->Specular); } } |