From: Marek Olšák Date: Fri, 14 Feb 2020 04:14:47 +0000 (-0500) Subject: mesa: fix immediate mode with tessellation and varying patch vertices X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2e05a280b6b6d334388e3824bd82472ccbf33252;p=mesa.git mesa: fix immediate mode with tessellation and varying patch vertices Cc: 19.3 20.0 Reviewed-by: Mathias Fröhlich Tested-by: Marge Bot Part-of: --- diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index 0d3c0de908e..ab81775f57d 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mesa/main/shaderapi.c @@ -2660,6 +2660,7 @@ void GLAPIENTRY _mesa_PatchParameteri_no_error(GLenum pname, GLint value) { GET_CURRENT_CONTEXT(ctx); + FLUSH_VERTICES(ctx, 0); ctx->TessCtrlProgram.patch_vertices = value; } @@ -2684,6 +2685,7 @@ _mesa_PatchParameteri(GLenum pname, GLint value) return; } + FLUSH_VERTICES(ctx, 0); ctx->TessCtrlProgram.patch_vertices = value; }