mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-23 06:10:23 +01:00
r300: remove unnecessary code
_tnl_UpdateFixedFunctionProgram is already called in r300_draw.c
This commit is contained in:
parent
981e8a2087
commit
b584e780ab
1 changed files with 0 additions and 17 deletions
|
|
@ -1984,23 +1984,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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue