r300: remove unnecessary code
authorMaciej Cencora <m.cencora@gmail.com>
Sat, 6 Mar 2010 12:09:47 +0000 (13:09 +0100)
committerMaciej Cencora <m.cencora@gmail.com>
Sun, 7 Mar 2010 11:00:26 +0000 (12:00 +0100)
_tnl_UpdateFixedFunctionProgram is already called in r300_draw.c

src/mesa/drivers/dri/r300/r300_state.c

index 9d1ff6e2ba20d2250bc921d13d89a7c5f14aa017..ba4a963d40913d6011117b6d902930b230ef432e 100644 (file)
@@ -1985,23 +1985,6 @@ void r300UpdateShaders(r300ContextPtr rmesa)
        if (rmesa->options.hw_tcl_enabled) {
                struct r300_vertex_program *vp;
 
-               if (rmesa->radeon.NewGLState) {
-                       int i;
-                       for (i = _TNL_FIRST_MAT; i <= _TNL_LAST_MAT; i++) {
-                               rmesa->temp_attrib[i] =
-                                   TNL_CONTEXT(ctx)->vb.AttribPtr[i];
-                               TNL_CONTEXT(ctx)->vb.AttribPtr[i] =
-                                   &rmesa->dummy_attrib[i];
-                       }
-
-                       _tnl_UpdateFixedFunctionProgram(ctx);
-
-                       for (i = _TNL_FIRST_MAT; i <= _TNL_LAST_MAT; i++) {
-                               TNL_CONTEXT(ctx)->vb.AttribPtr[i] =
-                                   rmesa->temp_attrib[i];
-                       }
-               }
-
                vp = r300SelectAndTranslateVertexShader(ctx);
 
                r300SwitchFallback(ctx, R300_FALLBACK_VERTEX_PROGRAM, vp->error);