mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 00:49:04 +02:00
Re-initialize viewport shadows each time.
This commit is contained in:
parent
67cc1f6ba6
commit
9557401a98
1 changed files with 11 additions and 8 deletions
|
|
@ -288,14 +288,6 @@ GLuint _tnl_install_attrs( GLcontext *ctx, const struct tnl_attr_map *map,
|
|||
|
||||
if (vp) {
|
||||
vtx->need_viewport = GL_TRUE;
|
||||
vtx->vp_scale[0] = vp[MAT_SX];
|
||||
vtx->vp_scale[1] = vp[MAT_SY];
|
||||
vtx->vp_scale[2] = vp[MAT_SZ];
|
||||
vtx->vp_scale[3] = 1.0;
|
||||
vtx->vp_xlate[0] = vp[MAT_TX];
|
||||
vtx->vp_xlate[1] = vp[MAT_TY];
|
||||
vtx->vp_xlate[2] = vp[MAT_TZ];
|
||||
vtx->vp_xlate[3] = 0.0;
|
||||
}
|
||||
|
||||
for (j = 0, i = 0; i < nr; i++) {
|
||||
|
|
@ -389,6 +381,17 @@ static void update_input_ptrs( GLcontext *ctx, GLuint start )
|
|||
|
||||
a[j].inputptr = ((GLubyte *)vptr->data) + start * vptr->stride;
|
||||
}
|
||||
|
||||
if (a->vp) {
|
||||
vtx->vp_scale[0] = a->vp[MAT_SX];
|
||||
vtx->vp_scale[1] = a->vp[MAT_SY];
|
||||
vtx->vp_scale[2] = a->vp[MAT_SZ];
|
||||
vtx->vp_scale[3] = 1.0;
|
||||
vtx->vp_xlate[0] = a->vp[MAT_TX];
|
||||
vtx->vp_xlate[1] = a->vp[MAT_TY];
|
||||
vtx->vp_xlate[2] = a->vp[MAT_TZ];
|
||||
vtx->vp_xlate[3] = 0.0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue