xlib: code to force fixed function -> shader translation (for debug, disabled)
authorBrian Paul <brianp@vmware.com>
Tue, 3 Mar 2009 21:01:10 +0000 (14:01 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 3 Mar 2009 21:01:10 +0000 (14:01 -0700)
src/mesa/drivers/x11/xm_api.c

index 908fecc85a1d74a685c2d64c612a2eac164c02c7..6ae5b6fd5800f3402c051a82487e7025ca9d11d2 100644 (file)
@@ -1584,6 +1584,14 @@ XMesaContext XMesaCreateContext( XMesaVisual v, XMesaContext share_list )
       return NULL;
    }
 
+   /* Enable this to exercise fixed function -> shader translation
+    * with software rendering.
+    */
+   if (0) {
+      mesaCtx->VertexProgram._MaintainTnlProgram = GL_TRUE;
+      mesaCtx->FragmentProgram._MaintainTexEnvProgram = GL_TRUE;
+   }
+
    _mesa_enable_sw_extensions(mesaCtx);
    _mesa_enable_1_3_extensions(mesaCtx);
    _mesa_enable_1_4_extensions(mesaCtx);