From: Mathias Fröhlich Date: Mon, 23 Sep 2019 06:10:37 +0000 (+0200) Subject: mesa: Fix FLUSH_VERTICES in SubpixelPrecisionBiasNV. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6edbb3c6d07a395c3cd0b1b5290ecac3943c4286;p=mesa.git mesa: Fix FLUSH_VERTICES in SubpixelPrecisionBiasNV. 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 --- 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; }