mesa: fix immediate mode with tessellation and varying patch vertices

Cc: 19.3 20.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Mathias Fröhlich <mathias.froehlich@web.de>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3861>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3861>
(cherry picked from commit 2e05a280b6)
This commit is contained in:
Marek Olšák 2020-02-13 23:14:47 -05:00 committed by Dylan Baker
parent 6d93c67532
commit 735a90abe5
2 changed files with 3 additions and 1 deletions

View file

@ -418,7 +418,7 @@
"description": "mesa: fix immediate mode with tessellation and varying patch vertices",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": null
},

View file

@ -2658,6 +2658,7 @@ void GLAPIENTRY
_mesa_PatchParameteri_no_error(GLenum pname, GLint value)
{
GET_CURRENT_CONTEXT(ctx);
FLUSH_VERTICES(ctx, 0);
ctx->TessCtrlProgram.patch_vertices = value;
}
@ -2682,6 +2683,7 @@ _mesa_PatchParameteri(GLenum pname, GLint value)
return;
}
FLUSH_VERTICES(ctx, 0);
ctx->TessCtrlProgram.patch_vertices = value;
}