make sure the HW is clean before shooting the pipeline

This commit is contained in:
Daniel Borca
2004-09-03 06:32:18 +00:00
parent f3d960054e
commit 58c4937e12

View File

@@ -1273,24 +1273,8 @@ static void fxRunPipeline( GLcontext *ctx )
*/
if (new_gl_state & _NEW_PROJECTION)
fxMesa->new_state |= FX_NEW_FOG;
/* [dBorca] Hack alert:
* the above _NEW_PROJECTION is not included in the test below,
* so we may end up with fxMesa->new_state still dirty by the end
* of the routine. The fact is, we don't have NearFar callback
* anymore. We could use fxDDDepthRange instead, but it seems
* fog needs to be updated only by a fog-basis.
* Implementing fxDDDepthRange correctly is another story:
* that, together with a presumable fxDDViewport function would set
* fxMesa->SetupNewInputs |= VERT_BIT_CLIP;
* which might be useful in fxBuildVertices...
*/
#endif
if (new_gl_state & (_FX_NEW_IS_IN_HARDWARE |
_FX_NEW_RENDERSTATE |
_FX_NEW_SETUP_FUNCTION |
_NEW_TEXTURE)) {
if (new_gl_state & _FX_NEW_IS_IN_HARDWARE)
fxCheckIsInHardware(ctx);
@@ -1323,7 +1307,6 @@ static void fxRunPipeline( GLcontext *ctx )
fxMesa->inv_t1scale = 1.0 / fxMesa->t1scale;
}
}
}
fxMesa->new_gl_state = 0;