From 509710cfd7c45a21bf03c3746d78c0f155b8418b Mon Sep 17 00:00:00 2001 From: Ben Crossman Date: Fri, 15 Apr 2005 17:17:47 +0000 Subject: more gldirect compile fixes. Getting near the linking stage now. No build file yet. --- .../windows/gldirect/dx8/gld_vb_mesa_render_dx8.c | 37 ++-------------------- 1 file changed, 2 insertions(+), 35 deletions(-) (limited to 'src/mesa/drivers/windows/gldirect/dx8/gld_vb_mesa_render_dx8.c') diff --git a/src/mesa/drivers/windows/gldirect/dx8/gld_vb_mesa_render_dx8.c b/src/mesa/drivers/windows/gldirect/dx8/gld_vb_mesa_render_dx8.c index 43fe35d6e9..c07370474a 100644 --- a/src/mesa/drivers/windows/gldirect/dx8/gld_vb_mesa_render_dx8.c +++ b/src/mesa/drivers/windows/gldirect/dx8/gld_vb_mesa_render_dx8.c @@ -1,4 +1,4 @@ -/* $Id: gld_vb_mesa_render_dx8.c,v 1.3 2005/04/14 16:58:25 bencrossman Exp $ */ +/* $Id: gld_vb_mesa_render_dx8.c,v 1.4 2005/04/15 17:17:47 bencrossman Exp $ */ /* * Mesa 3-D graphics library @@ -443,40 +443,7 @@ static void _gld_mesa_render_stage_check( GLcontext *ctx, struct tnl_pipeline_stage *stage) { - GLuint inputs = VERT_BIT_CLIP; - GLuint i; - - if (ctx->Visual.rgbMode) { - inputs |= VERT_BIT_COLOR0; - - if (ctx->_TriangleCaps & DD_SEPARATE_SPECULAR) - inputs |= VERT_BIT_COLOR1; //VERT_BIT_SPEC_RGB; - - //if (ctx->Texture._ReallyEnabled) { - for (i=0; iConst.MaxTextureUnits; i++) { - if (ctx->Texture.Unit[i]._ReallyEnabled) - inputs |= VERT_BIT_TEX(i); - } - //} - } else { - inputs |= VERT_BIT_INDEX; - } - - if (ctx->Point._Attenuated) - inputs |= VERT_BIT_POINT_SIZE; - - /* How do drivers turn this off? - */ - if (ctx->Fog.Enabled) - inputs |= VERT_BIT_FOG; // VERT_FOG_COORD; - - if (ctx->_TriangleCaps & DD_TRI_UNFILLED) - inputs |= VERT_BIT_EDGEFLAG; - - if (ctx->RenderMode==GL_FEEDBACK) - inputs |= VERT_BITS_TEX_ANY; - - stage->inputs = inputs; + stage->inputs = TNL_CONTEXT(ctx)->render_inputs; } //--------------------------------------------------------------------------- -- cgit v1.2.3