From 6edbb3c6d07a395c3cd0b1b5290ecac3943c4286 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mathias=20Fr=C3=B6hlich?= Date: Mon, 23 Sep 2019 08:10:37 +0200 Subject: [PATCH] mesa: Fix FLUSH_VERTICES in SubpixelPrecisionBiasNV. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The FLUSH_VERTICES macro is supposed to be called before the current context state is changed. Reviewed-by: Marek Olšák Signed-off-by: Mathias Fröhlich --- src/mesa/main/viewport.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/viewport.c b/src/mesa/main/viewport.c index 97d328541b2..f4dc74ae41a 100644 --- a/src/mesa/main/viewport.c +++ b/src/mesa/main/viewport.c @@ -610,10 +610,11 @@ subpixel_precision_bias(struct gl_context *ctx, GLuint xbits, GLuint ybits) if (MESA_VERBOSE & VERBOSE_API) _mesa_debug(ctx, "glSubpixelPrecisionBiasNV(%u, %u)\n", xbits, ybits); + FLUSH_VERTICES(ctx, 0); + ctx->SubpixelPrecisionBias[0] = xbits; ctx->SubpixelPrecisionBias[1] = ybits; - FLUSH_VERTICES(ctx, 0); ctx->NewDriverState |= ctx->DriverFlags.NewNvConservativeRasterizationParams; } -- 2.30.2