diff options
author | Ben Crossman <bencrossman@freedesktop.org> | 2005-04-15 17:17:47 +0000 |
---|---|---|
committer | Ben Crossman <bencrossman@freedesktop.org> | 2005-04-15 17:17:47 +0000 |
commit | 509710cfd7c45a21bf03c3746d78c0f155b8418b (patch) | |
tree | 618864f593ea22be9fad277507a440aa7bbf4e9e /src/mesa/drivers/windows/gldirect/dx7/gld_vb_mesa_render_dx7.c | |
parent | efb41b07ff213735e8ea08f38a7799f9d80459fc (diff) |
more gldirect compile fixes. Getting near the linking stage now. No build file yet.
Diffstat (limited to 'src/mesa/drivers/windows/gldirect/dx7/gld_vb_mesa_render_dx7.c')
-rw-r--r-- | src/mesa/drivers/windows/gldirect/dx7/gld_vb_mesa_render_dx7.c | 37 |
1 files changed, 2 insertions, 35 deletions
diff --git a/src/mesa/drivers/windows/gldirect/dx7/gld_vb_mesa_render_dx7.c b/src/mesa/drivers/windows/gldirect/dx7/gld_vb_mesa_render_dx7.c index fe342498dd..9035574045 100644 --- a/src/mesa/drivers/windows/gldirect/dx7/gld_vb_mesa_render_dx7.c +++ b/src/mesa/drivers/windows/gldirect/dx7/gld_vb_mesa_render_dx7.c @@ -1,4 +1,4 @@ -/* $Id: gld_vb_mesa_render_dx7.c,v 1.3 2005/04/14 16:58:25 bencrossman Exp $ */ +/* $Id: gld_vb_mesa_render_dx7.c,v 1.4 2005/04/15 17:17:47 bencrossman Exp $ */ /* * Mesa 3-D graphics library @@ -420,40 +420,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; i<ctx->Const.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; } //--------------------------------------------------------------------------- |