summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2001-12-20 15:30:45 +0000
committerKeith Whitwell <[email protected]>2001-12-20 15:30:45 +0000
commitfc00cbe8d1ac48faf345e41a13757a8a1e2e5ebe (patch)
tree34e46eff3622e9293e6abd3e9a19f7836f166d9c /src/mesa/tnl
parent1643203a936ae5503d5cf23177e444ac5971e7d1 (diff)
Further help with dri libGL version skew
Diffstat (limited to 'src/mesa/tnl')
-rw-r--r--src/mesa/tnl/t_imm_dlist.c24
1 files changed, 7 insertions, 17 deletions
diff --git a/src/mesa/tnl/t_imm_dlist.c b/src/mesa/tnl/t_imm_dlist.c
index 04212a6480f..3cec4464601 100644
--- a/src/mesa/tnl/t_imm_dlist.c
+++ b/src/mesa/tnl/t_imm_dlist.c
@@ -1,4 +1,4 @@
-/* $Id: t_imm_dlist.c,v 1.33 2001/12/14 02:51:45 brianp Exp $ */
+/* $Id: t_imm_dlist.c,v 1.34 2001/12/20 15:30:46 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -29,6 +29,7 @@
#include "glheader.h"
+#include "api_compat.h"
#include "context.h"
#include "dlist.h"
#include "debug.h"
@@ -597,7 +598,6 @@ static void loopback_compiled_cassette( GLcontext *ctx, struct immediate *IM )
ASSERT((prim & PRIM_MODE_MASK) <= GL_POLYGON+1);
if (prim & PRIM_BEGIN) {
-/* fprintf(stderr, "begin %s\n", _mesa_prim_name[prim&PRIM_MODE_MASK]); */
glBegin(prim & PRIM_MODE_MASK);
}
@@ -611,23 +611,17 @@ static void loopback_compiled_cassette( GLcontext *ctx, struct immediate *IM )
}
}
- if (flags[i] & VERT_NORMAL_BIT) {
-/* fprintf(stderr, "normal %d: %f %f %f\n", i, */
-/* IM->Normal[i][0], IM->Normal[i][1], IM->Normal[i][2]); */
+ if (flags[i] & VERT_NORMAL_BIT)
glNormal3fv(IM->Normal[i]);
- }
- if (flags[i] & VERT_COLOR0_BIT) {
-/* fprintf(stderr, "color %d: %f %f %f\n", i, */
-/* IM->Color[i][0], IM->Color[i][1], IM->Color[i][2]); */
+ if (flags[i] & VERT_COLOR0_BIT)
glColor4fv( IM->Color[i] );
- }
if (flags[i] & VERT_COLOR1_BIT)
- glSecondaryColor3fvEXT( IM->SecondaryColor[i] );
+ _compat_SecondaryColor3fvEXT( IM->SecondaryColor[i] );
if (flags[i] & VERT_FOG_BIT)
- glFogCoordfEXT( IM->FogCoord[i] );
+ _compat_FogCoordfEXT( IM->FogCoord[i] );
if (flags[i] & VERT_INDEX_BIT)
glIndexi( IM->Index[i] );
@@ -638,11 +632,8 @@ static void loopback_compiled_cassette( GLcontext *ctx, struct immediate *IM )
if (flags[i] & VERT_MATERIAL)
emit_material( IM->Material[i], IM->MaterialMask[i] );
- if (flags[i]&VERT_OBJ_234) {
-/* fprintf(stderr, "vertex %d: %f %f %f\n", i, */
-/* IM->Obj[i][0], IM->Obj[i][1], IM->Obj[i][2]); */
+ if (flags[i]&VERT_OBJ_234)
vertex( IM->Obj[i] );
- }
else if (flags[i] & VERT_EVAL_C1)
glEvalCoord1f( IM->Obj[i][0] );
else if (flags[i] & VERT_EVAL_P1)
@@ -654,7 +645,6 @@ static void loopback_compiled_cassette( GLcontext *ctx, struct immediate *IM )
}
if (prim & PRIM_END) {
-/* fprintf(stderr, "end\n"); */
glEnd();
}
}