Fix broken tnl stage.
authorAapo Tahkola <aet@rasterburn.org>
Tue, 1 Nov 2005 18:12:58 +0000 (18:12 +0000)
committerAapo Tahkola <aet@rasterburn.org>
Tue, 1 Nov 2005 18:12:58 +0000 (18:12 +0000)
src/mesa/drivers/dri/r300/r300_context.c

index 56b1f49affa93cf264ecc3d0a5c225044c05866b..a67d800fe601532283f630387d4ad93ec286366f 100644 (file)
@@ -267,6 +267,9 @@ GLboolean r300CreateContext(const __GLcontextModes * glVisual,
        ctx->Const.MaxLineWidth = R300_LINESIZE_MAX;
        ctx->Const.MaxLineWidthAA = R300_LINESIZE_MAX;
        
+       if (hw_tcl_on)
+               ctx->_MaintainTnlProgram = GL_TRUE;
+       
 #ifdef USER_BUFFERS
        /* Needs further modifications */
 #if 0