aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_imm_api.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2001-12-15 02:13:32 +0000
committerBrian Paul <[email protected]>2001-12-15 02:13:32 +0000
commitc3d90f3211d3214722a60c46ec5cef7c65836b39 (patch)
tree86c991ba054c2d2b0a6a6f32ece2c9598747c07c /src/mesa/tnl/t_imm_api.c
parent36c77a81add227cbd04489c679ede111b1d7754c (diff)
disable debug printf's, fix a crash
Diffstat (limited to 'src/mesa/tnl/t_imm_api.c')
-rw-r--r--src/mesa/tnl/t_imm_api.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/tnl/t_imm_api.c b/src/mesa/tnl/t_imm_api.c
index a4cb4845beb..d79f9622695 100644
--- a/src/mesa/tnl/t_imm_api.c
+++ b/src/mesa/tnl/t_imm_api.c
@@ -1,4 +1,4 @@
-/* $Id: t_imm_api.c,v 1.20 2001/12/14 02:51:44 brianp Exp $ */
+/* $Id: t_imm_api.c,v 1.21 2001/12/15 02:13:32 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -38,6 +38,7 @@
#include "state.h"
#include "colormac.h"
#include "macros.h"
+#include "vtxfmt.h"
#include "t_context.h"
#include "t_imm_api.h"
@@ -104,7 +105,8 @@ _tnl_begin( GLcontext *ctx, GLenum p )
_tnl_vprog_vtxfmt_init(ctx);
else
_tnl_imm_vtxfmt_init(ctx);
- _mesa_init_exec_vtxfmt(ctx);
+ /* XXX this should not be done here - inefficient */
+ _mesa_install_exec_vtxfmt(ctx, &(TNL_CONTEXT(ctx)->vtxfmt));
/* if only a very few slots left, might as well flush now
*/
@@ -1241,8 +1243,6 @@ void _tnl_imm_vtxfmt_init( GLcontext *ctx )
{
GLvertexformat *vfmt = &(TNL_CONTEXT(ctx)->vtxfmt);
- printf("%s()\n", __FUNCTION__);
-
/* All begin/end operations are handled by this vertex format:
*/
vfmt->ArrayElement = _tnl_ArrayElement;