From e9479f24ab12081e6ad48b70b80822ff97f5cd3d Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Tue, 18 Sep 2001 22:05:36 +0000 Subject: Fix FX driver to the point where gears & morph3d work. Textures are broken (eg. isosurf). --- src/mesa/drivers/glide/fxdd.c | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'src/mesa/drivers/glide/fxdd.c') diff --git a/src/mesa/drivers/glide/fxdd.c b/src/mesa/drivers/glide/fxdd.c index 28341a08bb..d576fd470f 100644 --- a/src/mesa/drivers/glide/fxdd.c +++ b/src/mesa/drivers/glide/fxdd.c @@ -657,20 +657,11 @@ int fxDDInitFxMesaContext(fxMesaContext fxMesa) { int i; - static int firsttime = 1; for (i = 0; i < 256; i++) { gl_ubyte_to_float_255_color_tab[i] = (float) i; } - if (firsttime) { -#if 00 - fxDDSetupInit(); - fxDDTrifuncInit(); -#endif - firsttime = 0; - } - FX_setupGrVertexLayout(); if (getenv("FX_EMULATE_SINGLE_TMU")) @@ -767,6 +758,7 @@ fxDDInitFxMesaContext(fxMesaContext fxMesa) fxAllocVB(fxMesa->glCtx); fxSetupDDPointers(fxMesa->glCtx); + fxDDInitTriFuncs(fxMesa->glCtx); /* Tell the software rasterizer to use pixel fog always. */ @@ -987,10 +979,9 @@ fxDDUpdateDDPointers(GLcontext * ctx, GLuint new_state) if (fxMesa->is_in_hardware) { if (new_state & _FX_NEW_RENDERSTATE) fxDDChooseRenderState(ctx); -#if 000 + if (new_state & _FX_NEW_SETUP_FUNCTION) - fxDDChooseSetupState(ctx); -#endif + fxChooseVertexState(ctx); } if (new_state & _NEW_TEXTURE) @@ -1061,11 +1052,6 @@ fxSetupDDPointers(GLcontext * ctx) tnl->Driver.RunPipeline = _tnl_run_pipeline; - /* XXX is this right? (BP) */ - /* Install swsetup for tnl->Driver.Render.*: - */ - _swsetup_Wakeup(ctx); - fxSetupDDSpanPointers(ctx); fxDDUpdateDDPointers(ctx, ~0); } -- cgit v1.2.3