From 2e05a280b6b6d334388e3824bd82472ccbf33252 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Thu, 13 Feb 2020 23:14:47 -0500 Subject: [PATCH] mesa: fix immediate mode with tessellation and varying patch vertices MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Cc: 19.3 20.0 Reviewed-by: Mathias Fröhlich Tested-by: Marge Bot Part-of: --- src/mesa/main/shaderapi.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.30.2